Example usage for org.openqa.selenium By toString

List of usage examples for org.openqa.selenium By toString

Introduction

In this page you can find the example usage for org.openqa.selenium By toString.

Prototype

@Override
    public String toString() 

Source Link

Usage

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());
}