[JBoss JIRA] (ARQGRA-449) Graphene can not switch between contexts
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-449?page=com.atlassian.jira.plugin... ]
Lukáš Fryč commented on ARQGRA-449:
-----------------------------------
I don't think it is related.
According to the stack trace, it is caused by two incompatible APIs - ProxyGenerator tries to create a proxy for given interfaces and detects that there are two which contains {{#getContext()}} method, but returns different type.
Stefan, could you please debug what interfaces we try to proxy that has conflicting signature?
> Graphene can not switch between contexts
> ----------------------------------------
>
> Key: ARQGRA-449
> URL: https://issues.jboss.org/browse/ARQGRA-449
> Project: Arquillian Graphene
> Issue Type: Bug
> Components: core
> Affects Versions: 2.0.3.Final
> Reporter: Stefan Miklosovic
>
> This code:
> {code}
> @Test
> public void nativeViewTest()
> {
> driver.switchTo().window("NATIVE_APP");
> }
> {code}
> 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)
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 6 months
[JBoss JIRA] (ARQ-1795) Update ghostdriver and phantom driver for Drone
by Stefan Miklosovic (JIRA)
Stefan Miklosovic created ARQ-1795:
--------------------------------------
Summary: Update ghostdriver and phantom driver for Drone
Key: ARQ-1795
URL: https://issues.jboss.org/browse/ARQ-1795
Project: Arquillian
Issue Type: Task
Security Level: Public (Everyone can see)
Components: Extension - Drone
Affects Versions: drone_1.3.0.Final
Reporter: Stefan Miklosovic
Update ghostdriver to 1.2.0 and phantom driver to 1.1.3.Final
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 6 months
[JBoss JIRA] (ARQGRA-449) Graphene can not switch between contexts
by Stefan Miklosovic (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-449?page=com.atlassian.jira.plugin... ]
Stefan Miklosovic commented on ARQGRA-449:
------------------------------------------
Dont know yet, my personal tip is that this error was introduced by changes in this commit (1), maybe [~sjamboro] could elaborate on this possibility?
(1) https://github.com/arquillian/arquillian-graphene/commit/d75bd3a6cb29745a...
> Graphene can not switch between contexts
> ----------------------------------------
>
> Key: ARQGRA-449
> URL: https://issues.jboss.org/browse/ARQGRA-449
> Project: Arquillian Graphene
> Issue Type: Bug
> Components: core
> Affects Versions: 2.0.3.Final
> Reporter: Stefan Miklosovic
>
> This code:
> {code}
> @Test
> public void nativeViewTest()
> {
> driver.switchTo().window("NATIVE_APP");
> }
> {code}
> 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)
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 6 months
[JBoss JIRA] (ARQ-1794) Update dependecies for QUnit
by Stefan Miklosovic (JIRA)
Stefan Miklosovic created ARQ-1794:
--------------------------------------
Summary: Update dependecies for QUnit
Key: ARQ-1794
URL: https://issues.jboss.org/browse/ARQ-1794
Project: Arquillian
Issue Type: Task
Security Level: Public (Everyone can see)
Components: Extension - QUnit
Affects Versions: qunit_1.0.0.Alpha3
Reporter: Stefan Miklosovic
Assignee: Tolis Emmanouilidis
Update
jboss-parent to 14
selenium to 2.42.0
graphene to 2.0.3.Final
arquillian-core to 1.1.4.Final
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 6 months
[JBoss JIRA] (ARQGRA-449) Graphene can not switch between contexts
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-449?page=com.atlassian.jira.plugin... ]
Lukáš Fryč commented on ARQGRA-449:
-----------------------------------
Is it possible that the cause is upgrade of Selenium?
> Graphene can not switch between contexts
> ----------------------------------------
>
> Key: ARQGRA-449
> URL: https://issues.jboss.org/browse/ARQGRA-449
> Project: Arquillian Graphene
> Issue Type: Bug
> Components: core
> Affects Versions: 2.0.3.Final
> Reporter: Stefan Miklosovic
>
> This code:
> {code}
> @Test
> public void nativeViewTest()
> {
> driver.switchTo().window("NATIVE_APP");
> }
> {code}
> 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)
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 6 months
[JBoss JIRA] (ARQGRA-449) Graphene can not switch between contexts
by Stefan Miklosovic (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-449?page=com.atlassian.jira.plugin... ]
Stefan Miklosovic commented on ARQGRA-449:
------------------------------------------
All was good with 2.0.2.Final
> Graphene can not switch between contexts
> ----------------------------------------
>
> Key: ARQGRA-449
> URL: https://issues.jboss.org/browse/ARQGRA-449
> Project: Arquillian Graphene
> Issue Type: Bug
> Components: core
> Affects Versions: 2.0.3.Final
> Reporter: Stefan Miklosovic
>
> This code:
> {code}
> @Test
> public void nativeViewTest()
> {
> driver.switchTo().window("NATIVE_APP");
> }
> {code}
> 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)
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 6 months
[JBoss JIRA] (ARQGRA-449) Graphene can not switch between contexts
by Stefan Miklosovic (JIRA)
Stefan Miklosovic created ARQGRA-449:
----------------------------------------
Summary: Graphene can not switch between contexts
Key: ARQGRA-449
URL: https://issues.jboss.org/browse/ARQGRA-449
Project: Arquillian Graphene
Issue Type: Bug
Components: core
Affects Versions: 2.0.3.Final
Reporter: Stefan Miklosovic
This code:
{code}
@Test
public void nativeViewTest()
{
driver.switchTo().window("NATIVE_APP");
}
{code}
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)
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 6 months