Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
(+)演算子が間にある2つのテキストボックスがある状況で立ち往生しています。これらのテキストボックスの値は自動的に変更されます。ユーザーはこれらの値を合計して合計を書き込み、nexxtを押して次のページに移動する必要があります。値が変化しているので、selenium.getvalue evry timeを使用できません。これを処理する方法を誰かが提案できます。私は、testng、eclipseでseleniumrcを使用しています。
String tb1=selenium.getAttribute("xpath to ur textbox 1/@value"); String tb2=selenium.getAttribute("xpath to ur textbox 2/@value"); int FinalValue = Integer.parseInt(tb1)+Integer.parseInt(tb2);
これがお役に立てば幸いです。