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.
4 つの読み取り専用テキスト ボックスがあります。
読み取り専用テキスト ボックスに値があるかどうかを確認する必要がありますか?
Selenium webdriverでそれを行う方法は?
ステップ1:
読み取り専用テキスト ボックスのロケーターの取得:txtPatinetLastName は、テキスト ボックスの ID です。
ステップ2:
データの確認:
既存のデータを保存する
String actualdata=driver.findElement(By.id("txtPatinetLastName")).getText() String expecteddata=".....";
if(!actualdata.equals(expecteddata))
不合格;
そうしないと
合格;