Examples of withMessage()


Examples of org.openqa.selenium.support.ui.WebDriverWait.withMessage()

     * Wait for the browser to refresh and display the given text, or timeout with error.
     */
    protected void waitForFixToProcess(String msg, final By elementSelector, final String text) {
        WebDriverWait wait = new WebDriverWait(testCase.getDriver(), 30);
        // Expect StaleElementReferenceException if browser hasn't displayed new text yet, so ignore until timeout
        wait.withMessage(msg).ignoring(StaleElementReferenceException.class).until(new ExpectedCondition<Boolean>() {
            @Override
            public Boolean apply(WebDriver d) {
                String elementText = testCase.getDriver().findElement(elementSelector).getText();
                // Android emulator messes up case, but displays correct message
                return elementText.toLowerCase().contains(text.toLowerCase());
View Full Code Here

Examples of org.springsource.ide.eclipse.commons.livexp.core.ValidationResult.withMessage()

              for (String csname : codesetNames) {
                CodeSet cs = g.getCodeSet(csname);
                if (cs!=null) {
                  ValidationResult result = cs.validateBuildType(bt);
                  if (!result.isOk()) {
                    return result.withMessage("CodeSet '"+csname+"': "+result.msg);
                  }
                  ImportStrategy importStrategy = bt.getImportStrategy();
                  if (!importStrategy.isSupported()) {
                    //This means some required STS component like m2e or gradle tooling is not installed
                    return ValidationResult.error(bt.getNotInstalledMessage());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.