Challenge 7 selenium java

Đáp án:

  1. Remove bỏ attribute readonly của thẻ input đó
  2. Clear input
  3. Sendkeys như bình thường.
String script = "document.getElementById('checkin').removeAttribute('readonly')";
((JavascriptExecutor) driver).executeScript(script);

driver.findElement(By.id("checkin")).clear();

driver.findElement(By.id("checkin")).sendKeys(checkin);
5 1 vote
Đánh giá challenge
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments