Selenium provides 3 methods:
- selectByIndex
- selectByVisibleText
- selectByValue
eDropdown = driver.findElement(By.xpath(""));
Select select = new Select(eDropdown);
select.selectByIndex(2);
select.selectByVisibleText("Ottawa")
select.selectByValue("ON");
No comments:
Post a Comment