List of usage examples for org.openqa.selenium By equals
@Override public boolean equals(Object o)
From source file:com.mengge.pagefactory.bys.ContentMappedBy.java
License:Apache License
@Override public String toString() { By defaultBy = map.get(ContentType.HTML_OR_DEFAULT); By nativeBy = map.get(ContentType.NATIVE_MOBILE_SPECIFIC); if (defaultBy.equals(nativeBy)) { return defaultBy.toString(); }/* ww w . j ava 2 s . c om*/ return "Locator map: " + "\n" + "- native content: \"" + nativeBy.toString() + "\" \n" + "- html content: \"" + defaultBy.toString() + "\""; }
From source file:com.worldline.easycukes.selenium.pages.Page.java
License:Open Source License
/** * @param by selector to find the element * @return the first WebElement/*from www . j a v a2 s . c o m*/ */ public WebElement getWebElement(final By by) { if (!by.equals(notifyBy)) waitLoadingPage(); return SeleniumHelper.waitForElementToBePresent(driver, by); }