Select { public Select(Findr findr) { this.findr = findr; } Select(Findr findr); Findr getFindr(); Select selectByVisibleText(String text); Select assertSelectedText(String expected); static Function<WebElement,?> makeSelectByVisibleText(final String text); static Predicate<WebElement> selectedText(final String expectedText); @Deprecated static void selectByVisibleText(Findr selectFindr, final String text);  }
@Ignore("shaky : the page uses iframes and it doesn't seem to be ok") @Test public void testSelect() { getWebDriver().get("http: getWebDriver().switchTo().frame("view"); Findr fSelect = findr().elem(By.tagName("select")); Select select = new Select(fSelect); fSelect.where(Select.selectedText("Volvo")).eval(); fSelect.eval(Select.makeSelectByVisibleText("Audi")); fSelect.where(Select.selectedText("Audi")).eval(); select.assertSelectedText("Audi") .selectByVisibleText("Volvo") .assertSelectedText("Volvo"); }