/** * Find input element with given value ("value" attribute) */ public static By byValue(String value) { return byAttribute("value", value); }
private SelenideElement letter(String letter) { return $(byText(letter)); } }
private SelenideElement letter(String letter) { return $(byText(letter)); }
public void selectLanguage(String language) { $(byText(language)).click(); }
/** * Find element with given title ("title" attribute) */ public static By byTitle(String title) { return byAttribute("title", title); }
@Before public void startGame() { open("/hangman"); $(byText("ENG")).click(); }
/** * Synonym for #byAttribute * * Seems to work incorrectly in HtmlUnit and PhantomJS if attribute name contains dash (e.g. "data-mailServerId") */ public static By by(String attributeName, String attributeValue) { return byAttribute(attributeName, attributeValue); }