Package org.jboss.arquillian.graphene.condition

Examples of org.jboss.arquillian.graphene.condition.BooleanConditionWrapper


    @Override
    public ExpectedCondition<Boolean> contains(final String expected) {
        if (expected == null) {
            throw new IllegalArgumentException("The expected string is null.");
        }
        return new BooleanConditionWrapper(new ExpectedCondition<Boolean>() {
            @Override
            public Boolean apply(WebDriver driver) {
                String elementText = findElement(locator, driver).getText();
                return elementText.contains(expected);
            }
View Full Code Here


    @Override
    public ExpectedCondition<Boolean> equalTo(final String expected) {
        if (expected == null) {
            throw new IllegalArgumentException("The expected string is null.");
        }
        return new BooleanConditionWrapper(new ExpectedCondition<Boolean>() {
            @Override
            public Boolean apply(WebDriver driver) {
                String elementText = findElement(locator, driver).getText();
                return elementText.equals(expected);
            }
View Full Code Here

        return ExpectedConditions.elementSelectionStateToBe(element, !getNegation());
    }

    @Override
    public ExpectedCondition<Boolean> isVisible() {
        return new BooleanConditionWrapper(ExpectedConditions.visibilityOf(element), getNegation(), NoSuchElementException.class);
    }
View Full Code Here

        this.locator = locator;
    }

    @Override
    public ExpectedCondition<Boolean> isVisible() {
        return new BooleanConditionWrapper(ExpectedConditions.visibilityOfElementLocated(locator), getNegation(), NoSuchElementException.class);
    }
View Full Code Here

        return new BooleanConditionWrapper(ExpectedConditions.visibilityOfElementLocated(locator), getNegation(), NoSuchElementException.class);
    }

    @Override
    public ExpectedCondition<Boolean> isPresent() {
        return new BooleanConditionWrapper(ExpectedConditions.presenceOfElementLocated(locator), getNegation(), NoSuchElementException.class);
    }
View Full Code Here

        return ExpectedConditions.elementSelectionStateToBe(locator, !getNegation());
    }

    @Override
    public ExpectedCondition<Boolean> textContains(String expected) {
        return new BooleanConditionWrapper(ExpectedConditions.textToBePresentInElement(locator, expected), getNegation());
    }
View Full Code Here

    @Override
    public ExpectedCondition<Boolean> textEquals(final String expected) {
        if (expected == null) {
            throw new IllegalArgumentException("The expected string is null.");
        }
        return new BooleanConditionWrapper(new ExpectedCondition<Boolean>() {
            @Override
            public Boolean apply(WebDriver driver) {
                String elementText = findElement(locator, driver).getText();
                return expected.equals(elementText);
            }
View Full Code Here

        return ExpectedConditions.elementSelectionStateToBe(element, !getNegation());
    }

    @Override
    public ExpectedCondition<Boolean> isVisible() {
        return new BooleanConditionWrapper(ExpectedConditions.visibilityOf(element), getNegation(), NoSuchElementException.class);
    }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.graphene.condition.BooleanConditionWrapper

Copyright © 2018 www.massapicom. 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.