Package org.jboss.arquillian.graphene.condition.element

Examples of org.jboss.arquillian.graphene.condition.element.WebElementConditionFactory


    public abstract AdvancedNumberInputInteractions advanced();

    @Override
    public void increase() {
        if (!new WebElementConditionFactory(advanced().getArrowIncreaseElement()).isVisible().apply(browser)) {
            throw new RuntimeException("Arrow for increasing value is not visible.");
        }
        advanced().getArrowIncreaseElement().click();
    }
View Full Code Here


        advanced().getArrowIncreaseElement().click();
    }

    @Override
    public void decrease() {
        if (!new WebElementConditionFactory(advanced().getArrowDecreaseElement()).isVisible().apply(browser)) {
            throw new RuntimeException("arrow for decreasing value is not visible.");
        }
        advanced().getArrowDecreaseElement().click();
    }
View Full Code Here

    private boolean isDisabled(WebElement group) {
        return group.getAttribute("class").contains(advanced().getCssDisabledSuffix());
    }

    private void checkElementIsVisible(WebElement element) {
        if (!new WebElementConditionFactory(element).isVisible().apply(browser)) {
            throw new IllegalArgumentException("Element: " + element + " must be visible before interacting with it!");
        }
    }
View Full Code Here

        Utils.triggerJQ("mousedown", getCancelButton());
        waitAfterConfirmOrCancel();
    }

    private void checkControllsAreAvailable() {
        boolean condition = new WebElementConditionFactory(getConfirmButton()).isPresent().apply(getBrowser());
        if (!condition) {
            throw new IllegalStateException(
                "You are trying to use cotrolls to confirm/cancel the input, however, there are no controlls!");
        }
    }
View Full Code Here

            return Utils.isVisible(getRootElement());
        }
    }

    private boolean isShowControlls() {
        return new WebElementConditionFactory(advanced().getCancelButtonElement()).isPresent().apply(browser);
    }
View Full Code Here

        this.fluentBase = fluentBase;
    }

    @Override
    public ElementBuilder<FLUENT> element(WebElement element) {
        return new ElementBuilderImpl<FLUENT>(new WebElementConditionFactory(element), fluentBase);
    }
View Full Code Here

     *
     * @param element
     * @return
     */
    public static ElementConditionFactory element(WebElement element) {
        return new WebElementConditionFactory(element);
    }
View Full Code Here

        this.fluentBase = fluentBase;
    }

    @Override
    public ElementBuilder<FLUENT> element(WebElement element) {
        return new ElementBuilderImpl<FLUENT>(new WebElementConditionFactory(element), fluentBase);
    }
View Full Code Here

     *
     * @param element
     * @return
     */
    public static ElementConditionFactory element(WebElement element) {
        return new WebElementConditionFactory(element);
    }
View Full Code Here

     * @param element
     * @see org.jboss.arquillian.graphene.wait.FluentBuilder#element(org.openqa.selenium.WebElement)
     */
    @Deprecated
    public static ElementConditionFactory element(WebElement element) {
        return new WebElementConditionFactory(element);
    }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.graphene.condition.element.WebElementConditionFactory

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.