Package org.openqa.selenium.support.ui

Examples of org.openqa.selenium.support.ui.Select.selectByIndex()


  }

  public void selectSecondOptionOnSecondSelect() {
    WebElement selectElement = getWebDriver().findElement(By.id("form:select2"));
    Select select = new Select(selectElement);
    select.selectByIndex(1);
  }
}
View Full Code Here


    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);
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.