Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.3.Final
    • Fix Version/s: 2.0.4.Final
    • Component/s: core
    • Labels:
      None

      Description

      This code:

      @Test
      public void nativeViewTest()
      {
          driver.switchTo().window("NATIVE_APP");
      }
      

      That window() parameter is Selendroid-related and it has nothing to do with Graphene. Graphene is just not able to handle that.

      It produces this exception:

      java.lang.IllegalArgumentException: methods with same signature getContext() but incompatible return types: [class java.lang.String, class org.jboss.arquillian.graphene.context.GrapheneContext]
      at sun.misc.ProxyGenerator.checkReturnTypes(ProxyGenerator.java:686)
      at sun.misc.ProxyGenerator.generateClassFile(ProxyGenerator.java:437)
      at sun.misc.ProxyGenerator.generateProxyClass(ProxyGenerator.java:323)
      at java.lang.reflect.Proxy.getProxyClass0(Proxy.java:636)
      at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:722)
      at org.jboss.arquillian.graphene.proxy.GrapheneProxy.createProxy(GrapheneProxy.java:166)
      at org.jboss.arquillian.graphene.proxy.GrapheneProxy.getProxyForTargetWithInterfaces(GrapheneProxy.java:92)
      at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$1.invoke(GrapheneContextualHandler.java:165)
      at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$2.call(GrapheneContextualHandler.java:209)
      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.$Proxy27.window(Unknown Source)
      at org.arquillian.droidium.showcase.hybrid.test01.SelendroidHybridTestAppTestCase.nativeViewTest(SelendroidHybridTestAppTestCase.java:101)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                smikloso Stefan Miklosovic
                Reporter:
                smikloso Stefan Miklosovic
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: