Selenium Java - Page Object Model
Consider this action method:
What will happen if the option text does not exist in the dropdown?
public void selectOption(String option) {
dropdown.click();
driver.findElement(By.xpath("//option[text()='" + option + "']")).click();
}What will happen if the option text does not exist in the dropdown?
