SyntaxFix
Write A Post
Hire A Developer
Questions
Try the following:
import org.openqa.selenium.support.ui.Select; Select droplist = new Select(driver.findElement(By.Id("selection"))); droplist.selectByVisibleText("Germany");