Uploaded image for project: 'Arquillian Graphene'
  1. Arquillian Graphene
  2. ARQGRA-429

Graphene should not use selenium-bom (inherited from Drone) + get rid of AndroidDriver dependency

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 2.0.1.Final
    • Fix Version/s: 2.0.2.Final
    • Component/s: None
    • Labels:
      None

      Description

      Was: Summary: Graphene JavaScript excecution is broken with Drone 1.3.0/Selenium 2.40.0

      Due to missing AndroidDriver, this fails

      https://github.com/arquillian/arquillian-graphene/blob/master/impl/src/main/java/org/jboss/arquillian/graphene/javascript/JavaScriptUtils.java

      	
       
          java.lang.IllegalStateException: Can't invoke method sendKeys.
                  at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$2.call(GrapheneContextualHandler.java:214)
                  at org.jboss.arquillian.graphene.context.BrowserActions.performAction(BrowserActions.java:62)
                  at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler.invoke(GrapheneContextualHandler.java:205)
                  at com.sun.proxy.$Proxy26.sendKeys(Unknown Source)
                  at se.iteration.integration.IntegrationTests.basicTest(IntegrationTests.java:105)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:606)
                  at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
                  at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
                  at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
                  at org.jboss.arquillian.junit.Arquillian$6$1.invoke(Arquillian.java:270)
                  at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:606)
                  at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
                  at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
                  at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
                  at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
                  at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
                  at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
                  at org.jboss.arquillian.container.test.impl.execution.ClientTestExecuter.execute(ClientTestExecuter.java:53)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:606)
                  at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
                  at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
                  at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
                  at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)
                  at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createTestContext(ContainerEventController.java:129)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:606)
                  at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
                  at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
                  at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:102)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:606)
                  at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
                  at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
                  at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:84)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:606)
                  at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
                  at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
                  at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:65)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:606)
                  at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
                  at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
                  at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
                  at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:111)
                  at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:263)
                  at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:226)
                  at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)
                  at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)
                  at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:240)
                  at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
                  at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
                  at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
                  at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
                  at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
                  at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
                  at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
                  at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
                  at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:185)
                  at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)
                  at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)
                  at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)
                  at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
                  at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)
                  at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
                  at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
                  at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
                  at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
                  at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
                  at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
          Caused by: java.lang.NoClassDefFoundError: org/openqa/selenium/android/AndroidDriver
                  at org.jboss.arquillian.graphene.javascript.JavaScriptUtils.execute(JavaScriptUtils.java:42)
                  at org.jboss.arquillian.graphene.javascript.DefaultExecutionResolver.executeScriptForCall(DefaultExecutionResolver.java:139)
                  at org.jboss.arquillian.graphene.javascript.DefaultExecutionResolver.execute(DefaultExecutionResolver.java:78)
                  at org.jboss.arquillian.graphene.javascript.JSInterfaceHandler.intercept(JSInterfaceHandler.java:58)
                  at org.jboss.arquillian.graphene.cglib.ClassImposterizer$ClassWithSuperclassToWorkAroundCglibBug$$EnhancerByGraphene$$29b1f8c.findElements(<generated>)
                  at org.jboss.arquillian.graphene.findby.ByJQueryImpl.findElements(ByJQueryImpl.java:65)
                  at org.jboss.arquillian.graphene.findby.ByJQueryImpl.findElement(ByJQueryImpl.java:80)
                  at org.jboss.arquillian.graphene.findby.ByJQuery.findElement(ByJQuery.java:72)
                  at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:318)
                  at org.jboss.arquillian.graphene.enricher.WebElementUtils.dropProxyAndFindElement(WebElementUtils.java:156)
                  at org.jboss.arquillian.graphene.enricher.WebElementUtils$5.getTarget(WebElementUtils.java:122)
                  at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.getTarget(GrapheneProxyHandler.java:149)
                  at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$1.getTarget(GrapheneContextualHandler.java:186)
                  at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$1.invoke(GrapheneContextualHandler.java:159)
                  at org.jboss.arquillian.graphene.enricher.StaleElementInterceptor$1.apply(StaleElementInterceptor.java:48)
                  at org.jboss.arquillian.graphene.enricher.StaleElementInterceptor$1.apply(StaleElementInterceptor.java:44)
                  at org.openqa.selenium.support.ui.FluentWait$1.apply(FluentWait.java:177)
                  at org.openqa.selenium.support.ui.FluentWait$1.apply(FluentWait.java:175)
                  at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:208)
                  at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:175)
                  at org.jboss.arquillian.graphene.wait.WebDriverWaitImpl.until(WebDriverWaitImpl.java:87)
                  at org.jboss.arquillian.graphene.enricher.StaleElementInterceptor.intercept(StaleElementInterceptor.java:44)
                  at org.jboss.arquillian.graphene.proxy.InvocationContextImpl.invoke(InvocationContextImpl.java:87)
                  at org.jboss.arquillian.graphene.intercept.InterceptorBuilder$2.intercept(InterceptorBuilder.java:139)
                  at org.jboss.arquillian.graphene.proxy.InvocationContextImpl.invoke(InvocationContextImpl.java:87)
                  at org.jboss.arquillian.graphene.enricher.SearchContextInterceptor.intercept(SearchContextInterceptor.java:50)
                  at org.jboss.arquillian.graphene.proxy.InvocationContextImpl.invoke(InvocationContextImpl.java:87)
                  at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$2.call(GrapheneContextualHandler.java:209)
                  ... 87 more
          Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.android.AndroidDriver
                  at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
                  at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
                  at java.security.AccessController.doPrivileged(Native Method)
                  at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
                  at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
                  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
                  at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
                  ... 115 more
       
      
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                lfryc Lukáš Fryč
                Reporter:
                kpiwko Karel Piwko
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: