Examples of WaitingWrapperImpl


Examples of org.richfaces.fragment.common.WaitingWrapperImpl

        public boolean isVisible() {
            return Utils.isVisible(getRootElement());
        }

        public WaitingWrapper waitUntilStatusStateChanges(final StatusState state) {
            return new WaitingWrapperImpl() {

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

Examples of org.richfaces.fragment.common.WaitingWrapperImpl

                }
            }.withMessage("Waiting for status state changes to <" + state + ">");
        }

        public WaitingWrapper waitUntilStatusTextChanges(final String statusText) {
            return new WaitingWrapperImpl() {

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

Examples of org.richfaces.fragment.common.WaitingWrapperImpl

            }.withMessage("Waiting for status text changes to <" + statusText + ">");
        }

        public WaitingWrapper waitUntilStatusTextChanges() {
            final String before = getStatusText();
            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

Examples of org.richfaces.fragment.common.WaitingWrapperImpl

        public void setScrollingType(ScrollingType type) {
            scrollingType = type;
        }

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

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

Examples of org.richfaces.fragment.common.WaitingWrapperImpl

            }.withMessage("Waiting for suggestions to be not visible")
                .withTimeout(getTimeoutForSuggestionsToBeNotVisible(), TimeUnit.MILLISECONDS);
        }

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

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

Examples of org.richfaces.fragment.common.WaitingWrapperImpl

        public boolean isGroupExpanded(WebElement groupRoot) {
            return AbstractPanelMenu.this.isGroupExpanded(getHeaderElementDynamically(groupRoot));
        }

        public WaitingWrapper waitUntilMenuGroupExpanded(final WebElement groupHeader) {
            return new WaitingWrapperImpl() {

                @Override
                protected void performWait(FluentWait<WebDriver, Void> wait) {
                    wait.ignoring(org.openqa.selenium.remote.ErrorHandler.UnknownServerException.class).until(
                        new Predicate<WebDriver>() {
View Full Code Here

Examples of org.richfaces.fragment.common.WaitingWrapperImpl

            }.withMessage("Waiting for Panel Menu group to be expanded!")
                .withTimeout(getTimoutForMenuGroupToBeExpanded(), TimeUnit.MILLISECONDS);
        }

        public WaitingWrapper waitUntilMenuGroupCollapsed(final WebElement groupHeader) {
            return new WaitingWrapperImpl() {

                @Override
                protected void performWait(FluentWait<WebDriver, Void> wait) {
                    wait.ignoring(org.openqa.selenium.remote.ErrorHandler.UnknownServerException.class).until(
                        new Predicate<WebDriver>() {
View Full Code Here

Examples of org.richfaces.fragment.common.WaitingWrapperImpl

         * Waits until the popup menu is visible. It takes into account the <code>showDelay</code> which has default value 50ms.
         *
         * @see #setShowDelay(int)
         */
        public WaitingWrapper waitUntilIsNotVisible() {
            return new WaitingWrapperImpl() {

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

Examples of org.richfaces.fragment.common.WaitingWrapperImpl

            }.withMessage("Waiting for menu to hide.")
                .withTimeout(hideDelay + getTimeoutForPopupMenuToBeNotVisible(), TimeUnit.MILLISECONDS);
        }

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

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

Examples of org.richfaces.fragment.common.WaitingWrapperImpl

            new Actions(driver).dragAndDropBy(getResizerElement(location), byXPixels, byYPixels).perform();
            return this;
        }

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

                @Override
                protected void performWait(FluentWait<WebDriver, Void> wait) {
                    wait.until().element(getRootElement()).is().not().visible();
                }
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.