List of usage examples for org.openqa.selenium By toString
@Override
public String toString()
From source file:org.zanata.page.administration.ServerConfigurationPage.java
License:Open Source License
public boolean expectFieldValue(final By by, final String expectedValue) { log.info("Wait for field {} value {}", by.toString(), expectedValue); return waitForAMoment().withMessage("text present: " + by.toString()) .until(ExpectedConditions.textToBePresentInElementValue(existingElement(by), expectedValue)); }
From source file:portal.driver.DriverExecutor.java
License:Open Source License
protected WebElement waitAndGetElement(By by) throws FunctionalException { if (cdbPortalDriver.waitForElementToShowUp(by)) { return findElementInDriver(by); }/* ww w .j a v a 2s.c om*/ throw new FunctionalException("Element could not be found: " + by.toString()); }