3940414243444546
} public void selectSecondOptionOnSecondSelect() { WebElement selectElement = getWebDriver().findElement(By.id("form:select2")); Select select = new Select(selectElement); select.selectByIndex(1); } }
3031323334353637
public void TODO_testSelectOption() throws Throwable { // Change selected dropdown option. WebElement element = currentDriver.findElement(By.cssSelector(".uiInputSelect")); Select dropdown = new Select(element); dropdown.selectByIndex(7); } }