Examples of BooleanConditionWrapper


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

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

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

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

        this.locator = locator;
    }

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

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

        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

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

    @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

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

    @Override
    public ExpectedCondition<Boolean> contains(String expected) {
        if (expected == null) {
            throw new IllegalArgumentException("The expected string is null.");
        }
        return new BooleanConditionWrapper(ExpectedConditions.textToBePresentInElement(locator, expected), getNegation());
    }
View Full Code Here

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

    @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 expected.equals(elementText);
            }
View Full Code Here

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

        this.searchContext = searchContext;
    }

    @Override
    public ExpectedCondition<Boolean> isVisible() {
        return new BooleanConditionWrapper(new ExpectedCondition<Boolean>() {
            @Override
            public Boolean apply(WebDriver driver) {
                return findElement(locator, driver).isDisplayed();
            }
View Full Code Here

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

        }, getNegation());
    }

    @Override
    public ExpectedCondition<Boolean> isPresent() {
        return new BooleanConditionWrapper(new ExpectedCondition<Boolean>() {
            @Override
            public Boolean apply(WebDriver driver) {
                try {
                    findElement(locator, driver);
                    return true;
View Full Code Here

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

        }, getNegation());
    }

    @Override
    public ExpectedCondition<Boolean> isSelected() {
        return new BooleanConditionWrapper(new ExpectedCondition<Boolean>() {
            @Override
            public Boolean apply(WebDriver driver) {
                return findElement(locator, driver).isSelected();
            }
View Full Code Here

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

        }, getNegation());
    }

    @Override
    public ExpectedCondition<Boolean> isEnabled() {
        return new BooleanConditionWrapper(new ExpectedCondition<Boolean>() {
            @Override
            public Boolean apply(WebDriver driver) {
                return findElement(locator, driver).isEnabled();
            }
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.