How to select one value from list box?

This is to select the list value for text box
Syntax :-

Select skillSelect = new Select(driver.findElement(By.name(“skill”)));
//using skillSelect to select menu options — Programming
skillSelect.selectByVisibleText(“Programming”);
skillSelect.selectByVisibleText(“Database”);

Leave a Reply