Tell us how to select a value in a dropdown?

Submitted by: Muhammad
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”);
Submitted by: Muhammad

Read Online Automation Job Interview Questions And Answers