How to select a value in the dropdown using selenium Webdriver?
Use the Below code:
import org.openqa.selenium.support.ui.Select;
Select droplist = new Select(driver.findElement(By.xpath("//*[@id='ddlrecurrencetype']")));
droplist.selectByVisibleText("Weekly");
No comments:
Post a Comment