[JBoss JIRA] (ARQ-1350) Drone: allow reuse of session even though all capabilities are not serializable
by Karel Piwko (JIRA)
[ https://issues.jboss.org/browse/ARQ-1350?page=com.atlassian.jira.plugin.s... ]
Karel Piwko updated ARQ-1350:
-----------------------------
Assignee: (was: Karel Piwko)
> Drone: allow reuse of session even though all capabilities are not serializable
> -------------------------------------------------------------------------------
>
> Key: ARQ-1350
> URL: https://issues.jboss.org/browse/ARQ-1350
> Project: Arquillian
> Issue Type: Enhancement
> Security Level: Public(Everyone can see)
> Components: Extension - Drone
> Reporter: Lukáš Fryč
>
> Remote drivers might store non-serializable instances in Capabilities map.
> Drone fails to reuse such browsers since it is not able to store and serialize their capabilities in ReusedSession object.
> One example of such a driver is PhantomJSDriver which stores object under key 'proxy': com.google.common.collect.Maps$TransformedEntriesMap.
> ---
> In order to maximize ability of session reusal, Drone may avoid reusing driver's capabilities at own, but try serialization of each capabilities entry separately and store them in new instance of DesiredCapabilities.
> This allows to reuse PhantomJS sessions.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 10 months
[JBoss JIRA] (ARQGRA-256) Graphene RemoteWebDriver doesn't support augmentation properly
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-256?page=com.atlassian.jira.plugin... ]
Lukáš Fryč commented on ARQGRA-256:
-----------------------------------
The request for automatic augmentation was raised in Drone: ARQ-1351
> Graphene RemoteWebDriver doesn't support augmentation properly
> --------------------------------------------------------------
>
> Key: ARQGRA-256
> URL: https://issues.jboss.org/browse/ARQGRA-256
> Project: Arquillian Graphene
> Issue Type: Bug
> Components: core
> Affects Versions: 2.0.0.Alpha3
> Environment: Graphene 2.0.0.Alpha3-SNAPSHOT
> Reporter: Ron Šmeral
> Priority: Critical
> Fix For: 2.0.0.Beta1
>
>
> When using a remote WebDriver, trying to take a screenshot as described in [WebDriver documentation|http://seleniumhq.org/docs/04_webdriver_advanced.jsp#taking...]:
> {code:java}
> @Drone
> WebDriver driver;
> ...
> WebDriver augmentedDriver = new Augmenter().augment(driver);
> byte[] screenshot = ((TakesScreenshot) augmentedDriver).getScreenshotAs(OutputType.BYTES);
> {code}
> results in the following exeception:
> {noformat}
> Caused by: java.lang.ClassFormatError: Duplicate method name&signature in class file org/openqa/selenium/remote/RemoteWebDriver$$EnhancerCGLIB$$58fd8af5$$EnhancerByCGLIB$$558c2b50
> {noformat}
> If the augmentation is omitted, the {{TakesScreenshot}} interface can't be found:
> {noformat}
> java.lang.ClassCastException: org.openqa.selenium.remote.RemoteWebDriver$$EnhancerCGLIB$$eda133bb cannot be cast to org.openqa.selenium.TakesScreenshot
> {noformat}
> It seems that the CGLib-enhanced {{RemoteWebDriver}} instance contains the methods of capability providers ({{AddTakesScreenshot}}) but doesn't declare that it implements their corresponding interfaces ({{TakesScreenshot}}).
> Note that taking screenshots works without the augmentation when using a non-remote WebDriver. (When using augmentation it throws the _Duplicate method name&signature_ exception).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 10 months
[JBoss JIRA] (ARQGRA-256) Graphene RemoteWebDriver doesn't support augmentation properly
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-256?page=com.atlassian.jira.plugin... ]
Lukáš Fryč edited comment on ARQGRA-256 at 3/11/13 2:41 AM:
------------------------------------------------------------
The request for automatic augmentation was raised in Drone: ARQ-1351
Further improvements are needed in Graphene though.
was (Author: lfryc):
The request for automatic augmentation was raised in Drone: ARQ-1351
> Graphene RemoteWebDriver doesn't support augmentation properly
> --------------------------------------------------------------
>
> Key: ARQGRA-256
> URL: https://issues.jboss.org/browse/ARQGRA-256
> Project: Arquillian Graphene
> Issue Type: Bug
> Components: core
> Affects Versions: 2.0.0.Alpha3
> Environment: Graphene 2.0.0.Alpha3-SNAPSHOT
> Reporter: Ron Šmeral
> Priority: Critical
> Fix For: 2.0.0.Beta1
>
>
> When using a remote WebDriver, trying to take a screenshot as described in [WebDriver documentation|http://seleniumhq.org/docs/04_webdriver_advanced.jsp#taking...]:
> {code:java}
> @Drone
> WebDriver driver;
> ...
> WebDriver augmentedDriver = new Augmenter().augment(driver);
> byte[] screenshot = ((TakesScreenshot) augmentedDriver).getScreenshotAs(OutputType.BYTES);
> {code}
> results in the following exeception:
> {noformat}
> Caused by: java.lang.ClassFormatError: Duplicate method name&signature in class file org/openqa/selenium/remote/RemoteWebDriver$$EnhancerCGLIB$$58fd8af5$$EnhancerByCGLIB$$558c2b50
> {noformat}
> If the augmentation is omitted, the {{TakesScreenshot}} interface can't be found:
> {noformat}
> java.lang.ClassCastException: org.openqa.selenium.remote.RemoteWebDriver$$EnhancerCGLIB$$eda133bb cannot be cast to org.openqa.selenium.TakesScreenshot
> {noformat}
> It seems that the CGLib-enhanced {{RemoteWebDriver}} instance contains the methods of capability providers ({{AddTakesScreenshot}}) but doesn't declare that it implements their corresponding interfaces ({{TakesScreenshot}}).
> Note that taking screenshots works without the augmentation when using a non-remote WebDriver. (When using augmentation it throws the _Duplicate method name&signature_ exception).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 10 months