Answers

Question and Answer:

  Home  Automation

⟩ Tell us how to select a value in a dropdown?

WebDriver’s Select class is used to select value in the drop down.

selectByVisibleText:

Select selectByVisibleText = new Select (driver.findElement(By.id(“id_of_some_element”)));

selectByVisibleText.selectByVisibleText(“some_visible_text”);

 135 views

More Questions for you: