Examples of StaleElementInterceptor


Examples of org.jboss.arquillian.graphene.enricher.StaleElementInterceptor

                try {
                    context = new LazyContext(qualifier, new BrowserActions(qualifier.getName()));
                    context.handler = GrapheneContextualHandler.forFuture(context, context.getFutureTarget());
                    GrapheneProxyInstance proxy = (GrapheneProxyInstance) context.getWebDriver();
                    proxy.registerInterceptor(new SearchContextInterceptor());
                    proxy.registerInterceptor(new StaleElementInterceptor());
                    context.installatorProvider = new RemotePageExtensionInstallatorProvider(context.registry, (JavascriptExecutor) context.getWebDriver(JavascriptExecutor.class));
                    final GrapheneContext finalContext = context;
                    context.getBrowserActions().performAction(new Callable<Void>() {
                        @Override
                        public Void call() throws Exception {
View Full Code Here

Examples of org.jboss.arquillian.graphene.enricher.StaleElementInterceptor

     */
    public static WebDriver getProxy() {
        WebDriver webdriver = GrapheneProxy.getProxyForHandler(HANDLER.get(), null, WebDriver.class, JavascriptExecutor.class, HasInputDevices.class);
        GrapheneProxyInstance proxy = (GrapheneProxyInstance) webdriver;
        proxy.registerInterceptor(new SearchContextInterceptor());
        proxy.registerInterceptor(new StaleElementInterceptor());
        return webdriver;
    }
View Full Code Here

Examples of org.jboss.arquillian.graphene.enricher.StaleElementInterceptor

     */
    public static <T extends WebDriver> T getProxyForDriver(Class<T> webDriverImplClass, Class<?>... additionalInterfaces) {
        T webdriver = GrapheneProxy.<T>getProxyForHandler(HANDLER.get(), webDriverImplClass, additionalInterfaces);
        GrapheneProxyInstance proxy = (GrapheneProxyInstance) webdriver;
        proxy.registerInterceptor(new SearchContextInterceptor());
        proxy.registerInterceptor(new StaleElementInterceptor());
        return webdriver;
    }
View Full Code Here

Examples of org.jboss.arquillian.graphene.enricher.StaleElementInterceptor

    public static <T> T getProxyForInterfaces(Class<?>... interfaces) {
        Class<?>[] interfacesIncludingWebdriver = GrapheneProxyUtil.concatClasses(interfaces, WebDriver.class);
        T webdriver = GrapheneProxy.<T>getProxyForHandler(HANDLER.get(), null, interfacesIncludingWebdriver);
        GrapheneProxyInstance proxy = (GrapheneProxyInstance) webdriver;
        proxy.registerInterceptor(new SearchContextInterceptor());
        proxy.registerInterceptor(new StaleElementInterceptor());
        return webdriver;
    }
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.