[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č updated ARQGRA-449:
------------------------------
Fix Version/s: 2.0.4.Final
> Graphene can not switch between contexts
> ----------------------------------------
>
> Key: ARQGRA-449
> URL: https://issues.jboss.org/browse/ARQGRA-449
> Project: Arquillian Graphene
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: core
> Affects Versions: 2.0.3.Final
> Reporter: Stefan Miklosovic
> Fix For: 2.0.4.Final
>
>
> 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:
> {code}
> 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)
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
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:
-----------------------------------
+1 for renaming our method #getContext to #getGrapheneContext. Is just needs to be renamed in whole project.
> Graphene can not switch between contexts
> ----------------------------------------
>
> Key: ARQGRA-449
> URL: https://issues.jboss.org/browse/ARQGRA-449
> Project: Arquillian Graphene
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> 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:
> {code}
> 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)
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (ARQGRA-446) Add support for Groovy page objects
by Chris Jones (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-446?page=com.atlassian.jira.plugin... ]
Chris Jones updated ARQGRA-446:
-------------------------------
Attachment: groovy-page-support (fixed paths).patch
Updating patch, fixed base path
> Add support for Groovy page objects
> -----------------------------------
>
> Key: ARQGRA-446
> URL: https://issues.jboss.org/browse/ARQGRA-446
> Project: Arquillian Graphene
> Issue Type: Enhancement
> Security Level: Public(Everyone can see)
> Components: configuration, core
> Affects Versions: 2.0.2.Final
> Reporter: Chris Jones
> Attachments: graphene-groovy-test.zip, groovy-page-support (fixed paths).patch, groovy-page-support.patch
>
>
> Page objects written in groovy throw a StackOverflowError. There seems to be a recursive issue when proxying groovy's metaclass property.
> {code:title=GoogleGroovy.groovy|borderStyle=solid}
> package test
> import org.jboss.arquillian.graphene.page.Location
> import org.openqa.selenium.WebElement
> import org.openqa.selenium.support.FindBy
> @Location("https://www.google.com/")
> public class GoogleGroovy {
> @FindBy
> WebElement q
> def search(String query){
> q.sendKeys(query)
> sleep(5000)
> }
> }
> {code}
> {code:title=GoogleJava.java|borderStyle=solid}
> package test;
> import org.jboss.arquillian.graphene.page.Location;
> import org.openqa.selenium.WebElement;
> import org.openqa.selenium.support.FindBy;
> @Location("https://www.google.com/")
> public class GoogleJava {
> @FindBy
> WebElement q;
> public void search(String query) throws Exception {
> q.sendKeys(query);
> Thread.sleep(5000);
> }
> }
> {code}
> {code:title=GoogleTestCase.groovy|borderStyle=solid}
> package test
> import org.jboss.arquillian.drone.api.annotation.Drone
> import org.jboss.arquillian.graphene.Graphene
> import org.jboss.arquillian.junit.Arquillian
> import org.junit.Test
> import org.junit.runner.RunWith
> import org.openqa.selenium.firefox.FirefoxDriver
> @RunWith(Arquillian.class)
> class GoogleTestCase {
> @Drone
> FirefoxDriver driver
> @Test
> def void testUsingJava(){
> def googleJava = Graphene.goTo(GoogleJava)
> googleJava.search("hello world")
> }
> @Test
> def void testUsingGroovy(){
> def googleGroovy = Graphene.goTo(GoogleGroovy)
> googleGroovy.search("jello world")
> }
> }
> {code}
> {code:title=Stacktrace|borderStyle=solid}
> Jun 01, 2014 12:47:08 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Public field '__$stMC' found in test.GoogleTestCase. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:08 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Public field '__timeStamp' found in test.GoogleTestCase. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:08 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Public field '__timeStamp__239_neverHappen1401597979243' found in test.GoogleTestCase. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Public field '__$stMC' found in test.GoogleGroovy. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Package-friendly field '__$stMC' found in test.GoogleGroovy. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Public field '__timeStamp' found in test.GoogleGroovy. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Package-friendly field '__timeStamp' found in test.GoogleGroovy. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Public field '__timeStamp__239_neverHappen1401597978002' found in test.GoogleGroovy. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Package-friendly field '__timeStamp__239_neverHappen1401597978002' found in test.GoogleGroovy. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Public field '__$stMC' found in test.GoogleGroovy$$EnhancerByGraphene$$2eb2d5f8. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Package-friendly field '__$stMC' found in test.GoogleGroovy$$EnhancerByGraphene$$2eb2d5f8. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Public field '__timeStamp' found in test.GoogleGroovy$$EnhancerByGraphene$$2eb2d5f8. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Package-friendly field '__timeStamp' found in test.GoogleGroovy$$EnhancerByGraphene$$2eb2d5f8. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Public field '__timeStamp__239_neverHappen1401597978002' found in test.GoogleGroovy$$EnhancerByGraphene$$2eb2d5f8. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Package-friendly field '__timeStamp__239_neverHappen1401597978002' found in test.GoogleGroovy$$EnhancerByGraphene$$2eb2d5f8. Direct access to fields outside of the declaring class is not allowed.
> java.lang.StackOverflowError
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler.invoke(GrapheneContextualHandler.java:205)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler.intercept(GrapheneContextualHandler.java:229)
> at test.GoogleGroovy$$EnhancerByGraphene$$2eb2d5f8.getMetaClass(<generated>)
> at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.checkCall(PogoMetaClassSite.java:59)
> at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:36)
> at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
> at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:54)
> at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
> at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:54)
> at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
> at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:54)
> at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
> .....
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (ARQGRA-446) Add support for Groovy page objects
by Chris Jones (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-446?page=com.atlassian.jira.plugin... ]
Chris Jones updated ARQGRA-446:
-------------------------------
Attachment: groovy-page-support.patch
Patch for groovy page objects
> Add support for Groovy page objects
> -----------------------------------
>
> Key: ARQGRA-446
> URL: https://issues.jboss.org/browse/ARQGRA-446
> Project: Arquillian Graphene
> Issue Type: Enhancement
> Security Level: Public(Everyone can see)
> Components: configuration, core
> Affects Versions: 2.0.2.Final
> Reporter: Chris Jones
> Attachments: graphene-groovy-test.zip, groovy-page-support.patch
>
>
> Page objects written in groovy throw a StackOverflowError. There seems to be a recursive issue when proxying groovy's metaclass property.
> {code:title=GoogleGroovy.groovy|borderStyle=solid}
> package test
> import org.jboss.arquillian.graphene.page.Location
> import org.openqa.selenium.WebElement
> import org.openqa.selenium.support.FindBy
> @Location("https://www.google.com/")
> public class GoogleGroovy {
> @FindBy
> WebElement q
> def search(String query){
> q.sendKeys(query)
> sleep(5000)
> }
> }
> {code}
> {code:title=GoogleJava.java|borderStyle=solid}
> package test;
> import org.jboss.arquillian.graphene.page.Location;
> import org.openqa.selenium.WebElement;
> import org.openqa.selenium.support.FindBy;
> @Location("https://www.google.com/")
> public class GoogleJava {
> @FindBy
> WebElement q;
> public void search(String query) throws Exception {
> q.sendKeys(query);
> Thread.sleep(5000);
> }
> }
> {code}
> {code:title=GoogleTestCase.groovy|borderStyle=solid}
> package test
> import org.jboss.arquillian.drone.api.annotation.Drone
> import org.jboss.arquillian.graphene.Graphene
> import org.jboss.arquillian.junit.Arquillian
> import org.junit.Test
> import org.junit.runner.RunWith
> import org.openqa.selenium.firefox.FirefoxDriver
> @RunWith(Arquillian.class)
> class GoogleTestCase {
> @Drone
> FirefoxDriver driver
> @Test
> def void testUsingJava(){
> def googleJava = Graphene.goTo(GoogleJava)
> googleJava.search("hello world")
> }
> @Test
> def void testUsingGroovy(){
> def googleGroovy = Graphene.goTo(GoogleGroovy)
> googleGroovy.search("jello world")
> }
> }
> {code}
> {code:title=Stacktrace|borderStyle=solid}
> Jun 01, 2014 12:47:08 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Public field '__$stMC' found in test.GoogleTestCase. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:08 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Public field '__timeStamp' found in test.GoogleTestCase. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:08 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Public field '__timeStamp__239_neverHappen1401597979243' found in test.GoogleTestCase. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Public field '__$stMC' found in test.GoogleGroovy. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Package-friendly field '__$stMC' found in test.GoogleGroovy. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Public field '__timeStamp' found in test.GoogleGroovy. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Package-friendly field '__timeStamp' found in test.GoogleGroovy. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Public field '__timeStamp__239_neverHappen1401597978002' found in test.GoogleGroovy. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Package-friendly field '__timeStamp__239_neverHappen1401597978002' found in test.GoogleGroovy. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Public field '__$stMC' found in test.GoogleGroovy$$EnhancerByGraphene$$2eb2d5f8. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Package-friendly field '__$stMC' found in test.GoogleGroovy$$EnhancerByGraphene$$2eb2d5f8. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Public field '__timeStamp' found in test.GoogleGroovy$$EnhancerByGraphene$$2eb2d5f8. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Package-friendly field '__timeStamp' found in test.GoogleGroovy$$EnhancerByGraphene$$2eb2d5f8. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Public field '__timeStamp__239_neverHappen1401597978002' found in test.GoogleGroovy$$EnhancerByGraphene$$2eb2d5f8. Direct access to fields outside of the declaring class is not allowed.
> Jun 01, 2014 12:47:12 AM org.jboss.arquillian.graphene.enricher.FieldAccessValidatorEnricher checkFieldValidity
> WARNING: Package-friendly field '__timeStamp__239_neverHappen1401597978002' found in test.GoogleGroovy$$EnhancerByGraphene$$2eb2d5f8. Direct access to fields outside of the declaring class is not allowed.
> java.lang.StackOverflowError
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler.invoke(GrapheneContextualHandler.java:205)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler.intercept(GrapheneContextualHandler.java:229)
> at test.GoogleGroovy$$EnhancerByGraphene$$2eb2d5f8.getMetaClass(<generated>)
> at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.checkCall(PogoMetaClassSite.java:59)
> at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:36)
> at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
> at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:54)
> at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
> at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:54)
> at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
> at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:54)
> at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
> .....
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (ARQGRA-395) Graphene.guardAjax() doesn't work correctly in IE
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-395?page=com.atlassian.jira.plugin... ]
Lukáš Fryč updated ARQGRA-395:
------------------------------
Assignee: (was: Lukáš Fryč)
> Graphene.guardAjax() doesn't work correctly in IE
> -------------------------------------------------
>
> Key: ARQGRA-395
> URL: https://issues.jboss.org/browse/ARQGRA-395
> Project: Arquillian Graphene
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: core
> Affects Versions: 2.0.0.CR2
> Environment: IE 7, 8, 9
> Reporter: Jan Dosoudil
> Fix For: 2.0-Tracking
>
>
> I have jsf page h:commandButton with f:ajax. Testing with Graphene.guardAjax(button).click(); works with Firefox, htmlUnit, phantomjs but doesn't with Internet Explorer (7, 8, 9). Internet explorer calls onclick function but without return false which causes full page submit.
> button.click() works ok.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (ARQGRA-450) takeBeforeTest does not work when loading of the page is in JUnit @Before method
by Juraj Húska (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-450?page=com.atlassian.jira.plugin... ]
Juraj Húska commented on ARQGRA-450:
------------------------------------
Just a note that it works correctly with @InitialPage Graphene feature.
> takeBeforeTest does not work when loading of the page is in JUnit @Before method
> --------------------------------------------------------------------------------
>
> Key: ARQGRA-450
> URL: https://issues.jboss.org/browse/ARQGRA-450
> Project: Arquillian Graphene
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: screenshooter
> Affects Versions: 2.1.0.Alpha1
> Reporter: Juraj Húska
> Assignee: Juraj Húska
>
> {{takeBeforeTest}} option is broken, because when there are multiple tests, and the loading of the page is done on {{@Before}} method, then the first test is omitted.
> It is because JUnit @Before observer is called before the Graphene Screenshooter one, thus the registration of interceptor which takes screenshots is done quite late.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (ARQGRA-450) takeBeforeTest does not work when loading of the page is in JUnit @Before method
by Juraj Húska (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-450?page=com.atlassian.jira.plugin... ]
Juraj Húska updated ARQGRA-450:
-------------------------------
Description:
{{takeBeforeTest}} option is broken, because when there are multiple tests, and the loading of the page is done on {{@Before}} method, then the first test is omitted.
It is because JUnit @Before observer is called before the Graphene Screenshooter one, thus the registration of interceptor which takes screenshots is done quite late.
was:{{takeBeforeTest}} option is broken, because when there are multiple tests, and the loading of the page is done on {{@Before}} method, then screenshot is taken only for first test.
> takeBeforeTest does not work when loading of the page is in JUnit @Before method
> --------------------------------------------------------------------------------
>
> Key: ARQGRA-450
> URL: https://issues.jboss.org/browse/ARQGRA-450
> Project: Arquillian Graphene
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: screenshooter
> Affects Versions: 2.1.0.Alpha1
> Reporter: Juraj Húska
> Assignee: Juraj Húska
>
> {{takeBeforeTest}} option is broken, because when there are multiple tests, and the loading of the page is done on {{@Before}} method, then the first test is omitted.
> It is because JUnit @Before observer is called before the Graphene Screenshooter one, thus the registration of interceptor which takes screenshots is done quite late.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (ARQGRA-450) takeBeforeTest does not work when loading of the page is in JUnit @Before method
by Juraj Húska (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-450?page=com.atlassian.jira.plugin... ]
Juraj Húska updated ARQGRA-450:
-------------------------------
Summary: takeBeforeTest does not work when loading of the page is in JUnit @Before method (was: takeBeforeTest takes screenshot only for first test when loading of page is done in @Before)
> takeBeforeTest does not work when loading of the page is in JUnit @Before method
> --------------------------------------------------------------------------------
>
> Key: ARQGRA-450
> URL: https://issues.jboss.org/browse/ARQGRA-450
> Project: Arquillian Graphene
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: screenshooter
> Affects Versions: 2.1.0.Alpha1
> Reporter: Juraj Húska
> Assignee: Juraj Húska
>
> {{takeBeforeTest}} option is broken, because when there are multiple tests, and the loading of the page is done on {{@Before}} method, then screenshot is taken only for first test.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
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:
------------------------------------------
got it ...
https://github.com/arquillian/arquillian-graphene/blob/master/impl/src/ma...
https://github.com/SeleniumHQ/selenium/blob/master/java/client/src/org/op...
Do we rename that GrapheneProxyInstance method?
> Graphene can not switch between contexts
> ----------------------------------------
>
> Key: ARQGRA-449
> URL: https://issues.jboss.org/browse/ARQGRA-449
> Project: Arquillian Graphene
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> 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:
> {code}
> 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)
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months