Examples of WaitingWrapperImpl


Examples of org.richfaces.fragment.common.WaitingWrapperImpl

                }
            }.withMessage("Waiting for popup to be not visible.");
        }

        public WaitingWrapper waitUntilPopupIsVisible() {
            return new WaitingWrapperImpl() {

                @Override
                protected void performWait(FluentWait<WebDriver, Void> wait) {
                    wait.until().element(getRootElement()).is().visible();
                }
View Full Code Here

Examples of org.richfaces.fragment.common.WaitingWrapperImpl

        public void setTimeoutForPanelIsSwitched(long timeoutInMillis) {
            this._timeoutForPanelIsSwitched = timeoutInMillis;
        }

        public WaitingWrapper waitUntilPanelIsCollapsed() {
            return new WaitingWrapperImpl() {
                @Override
                protected void performWait(FluentWait<WebDriver, Void> wait) {
                    wait.until(new Predicate<WebDriver>() {
                        @Override
                        public boolean apply(WebDriver t) {
View Full Code Here

Examples of org.richfaces.fragment.common.WaitingWrapperImpl

            }.withMessage("Waiting for panel to collapse.")
                .withTimeout(getTimeoutForPanelIsSwitched(), TimeUnit.MILLISECONDS);
        }

        public WaitingWrapper waitUntilPanelIsExpanded() {
            return new WaitingWrapperImpl() {
                @Override
                protected void performWait(FluentWait<WebDriver, Void> wait) {
                    wait.until(new Predicate<WebDriver>() {
                        @Override
                        public boolean apply(WebDriver t) {
View Full Code Here

Examples of org.richfaces.fragment.common.WaitingWrapperImpl

            this.target = target;
        }

        public WaitingWrapper waitUntilTooltipIsNotVisible() {
            return getIdOfTooltip() == null
                ? new WaitingWrapperImpl() {
                    @Override
                    protected void performWait(FluentWait<WebDriver, Void> wait) {
                        wait.until(new Predicate<WebDriver>() {
                            @Override
                            public boolean apply(WebDriver input) {
                                if (getTooltipsBefore() == 0) {
                                    return driver.findElements(getTooltipsSelector()).isEmpty();
                                } else {
                                    return driver.findElements(getTooltipsSelector()).size() < getTooltipsBefore();
                                }
                            }
                        });
                    }
                }.withTimeout(getTimoutForTooltipToBeNotVisible(), TimeUnit.MILLISECONDS)
                .withMessage("Waiting until some tooltip disappears. There were " + getTooltipsBefore() + " tooltips before, now there are: " + driver.findElements(getTooltipsSelector()).size())
                : new WaitingWrapperImpl() {
                    @Override
                    protected void performWait(FluentWait<WebDriver, Void> wait) {
                        wait.until().element(driver, By.id(getIdOfTooltip())).is().not().visible();
                    }
                }.withTimeout(getTimoutForTooltipToBeNotVisible(), TimeUnit.MILLISECONDS)
View Full Code Here

Examples of org.richfaces.fragment.common.WaitingWrapperImpl

                .withMessage("Waiting until tooltip is not visible.");
        }

        public WaitingWrapper waitUntilTooltipIsVisible() {
            return getIdOfTooltip() == null
                ? new WaitingWrapperImpl() {
                    @Override
                    protected void performWait(FluentWait<WebDriver, Void> wait) {
                        wait.until(new Predicate<WebDriver>() {
                            @Override
                            public boolean apply(WebDriver input) {
                                return driver.findElements(getTooltipsSelector()).size() > getTooltipsBefore();
                            }
                        });
                    }
                }.withTimeout(getTimeoutForTooltipToBeVisible(), TimeUnit.MILLISECONDS)
                .withMessage("Waiting until a new tooltip appears. There were " + getTooltipsBefore() + " tooltips before, now there are: " + driver.findElements(getTooltipsSelector()).size())
                : new WaitingWrapperImpl() {
                    @Override
                    protected void performWait(FluentWait<WebDriver, Void> wait) {
                        wait.until().element(driver, By.id(getIdOfTooltip())).is().visible();
                    }
                }.withTimeout(getTimeoutForTooltipToBeVisible(), TimeUnit.MILLISECONDS)
View Full Code Here

Examples of org.richfaces.fragment.common.WaitingWrapperImpl

            return Utils.isVisible(getSummaryElement()) || Utils.isVisible(getDetailElement());
        }

        @Override
        public WaitingWrapper waitUntilMessageIsNotVisible() {
            return new WaitingWrapperImpl() {

                @Override
                protected void performWait(FluentWait<WebDriver, Void> wait) {
                    wait.until(new Predicate<WebDriver>() {
View Full Code Here

Examples of org.richfaces.fragment.common.WaitingWrapperImpl

            }.withMessage("Waiting for message to be not visible.");
        }

        @Override
        public WaitingWrapper waitUntilMessageIsVisible() {
            return new WaitingWrapperImpl() {

                @Override
                protected void performWait(FluentWait<WebDriver, Void> wait) {
                    wait.until(new Predicate<WebDriver>() {
View Full Code Here

Examples of org.richfaces.fragment.common.WaitingWrapperImpl

            return !getItemsElements().isEmpty();
        }

        @Override
        public WaitingWrapper waitUntilMessagesAreNotVisible() {
            return new WaitingWrapperImpl() {

                @Override
                protected void performWait(FluentWait<WebDriver, Void> wait) {
                    wait.until(new Predicate<WebDriver>() {
View Full Code Here

Examples of org.richfaces.fragment.common.WaitingWrapperImpl

            }.withMessage("Waiting for notify to be not visible.");
        }

        @Override
        public WaitingWrapper waitUntilMessagesAreVisible() {
            return new WaitingWrapperImpl() {

                @Override
                protected void performWait(FluentWait<WebDriver, Void> wait) {
                    wait.until(new Predicate<WebDriver>() {
View Full Code Here

Examples of org.richfaces.fragment.common.WaitingWrapperImpl

        public void setTimeoutForTableToExpand(long timeoutInMilliseconds) {
            this.timeoutForTableToExpand = timeoutInMilliseconds;
        }

        public WaitingWrapper waitUntilTableCollapses() {
            return new WaitingWrapperImpl() {
                @Override
                protected void performWait(FluentWait<WebDriver, Void> wait) {
                    wait.until(new Predicate<WebDriver>() {
                        @Override
                        public boolean apply(WebDriver input) {
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.