[JBoss JIRA] (ARQGRA-512) ClassCastException while performing MouseActions against selenium 3.6.0
by S Haster (JIRA)
S Haster created ARQGRA-512:
-------------------------------
Summary: ClassCastException while performing MouseActions against selenium 3.6.0
Key: ARQGRA-512
URL: https://issues.jboss.org/browse/ARQGRA-512
Project: Arquillian Graphene
Issue Type: Bug
Affects Versions: 2.3.1
Reporter: S Haster
Selenium 3.6.0 is api breaking (w/ regards to 3.5.3) and graphene is not yet updated.
We recently upgraded to selenium 3.6.0 and are running graphene 2.3.1
While performing a ClickAndHoldAction we get a ClassCastException. The reason is because selenium-api created a second Locatable as a super-interface of the old one and GrapheneElementImpl uses the 'old' one but RemoteWebElement only implements the 'new' one.
Stacktrace:
{noformat}
java.lang.ClassCastException: org.openqa.selenium.remote.RemoteWebElement cannot be cast to org.openqa.selenium.internal.Locatable
at org.jboss.arquillian.graphene.GrapheneElementImpl.getCoordinates(GrapheneElementImpl.java:259)
at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.invokeReal(GrapheneProxyHandler.java:130)
at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$1.invoke(GrapheneContextualHandler.java:169)
at org.jboss.arquillian.graphene.enricher.StaleElementInterceptor$1.apply(StaleElementInterceptor.java:47)
at org.jboss.arquillian.graphene.enricher.StaleElementInterceptor$1.apply(StaleElementInterceptor.java:43)
at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:208)
at org.jboss.arquillian.graphene.wait.WebDriverWaitImpl.until(WebDriverWaitImpl.java:96)
at org.jboss.arquillian.graphene.enricher.StaleElementInterceptor.intercept(StaleElementInterceptor.java:43)
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:241)
at org.jboss.arquillian.graphene.context.BrowserActions.performAction(BrowserActions.java:62)
at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler.invoke(GrapheneContextualHandler.java:237)
at org.openqa.selenium.interactions.internal.MouseAction.getActionLocation(MouseAction.java:65)
at org.openqa.selenium.interactions.internal.MouseAction.moveToLocation(MouseAction.java:72)
at org.openqa.selenium.interactions.ClickAndHoldAction.perform(ClickAndHoldAction.java:45)
at org.openqa.selenium.interactions.CompositeAction.perform(CompositeAction.java:36)
at org.openqa.selenium.interactions.Actions$BuiltAction.perform(Actions.java:641)
at nl.topicus.keyhub.arquillian.selenium.page.console.GMyGroupFoldersPage.dragOnto(GMyGroupFoldersPage.java:56)
at <our testclass>
{noformat}
The 'dragOnto'method does:
{code:java}
public void dragOnto(String groupName, String folderName)
{
WebDriver driver = GrapheneHelper.getDriver(add);
WebElement group = driver.findElement(
By.cssSelector("div.content--part div.tasks .task[data-value='" + groupName + "']"));
WebElement targetFolder = driver
.findElement(By.cssSelector("div.content--part[data-value='" + folderName + "']"));
Action dragAndDrop = new Actions(driver).dragAndDrop(group, targetFolder).build();
dragAndDrop.perform();
}
{code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 3 months
[JBoss JIRA] (ARQ-2145) Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
by Matous Jobanek (JIRA)
[ https://issues.jboss.org/browse/ARQ-2145?page=com.atlassian.jira.plugin.s... ]
Matous Jobanek updated ARQ-2145:
--------------------------------
Component/s: Extension - Drone
(was: Configuration)
> Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
> -------------------------------------------------------------------------
>
> Key: ARQ-2145
> URL: https://issues.jboss.org/browse/ARQ-2145
> Project: Arquillian
> Issue Type: Bug
> Components: Extension - Drone
> Affects Versions: drone_2.1.0.Alpha1
> Environment: OS:Windows
> Browser:Chrome
> Reporter: Ankit Ojha
> Assignee: Matous Jobanek
> Attachments: image-2017-09-21-17-10-11-058.png
>
>
> Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
> +Arquillian.xml+
> {noformat}
> <property name="remoteAddress">${gridhubaddress}</property>
> <property name="remote">true</property>
> <property name="chromePrintOptions">true</property>
> <property name="chromeArguments">-start-maximized</property>
> <property name="chromeExperimentalOption">
> {
> "prefs": {
> "download.default_directory": "${downloadlocation}"
> }
> }
> </property>
> {noformat}
> *+Note+*
> - Desired Capabilities were captured and worked as expected when executed {color:red}without {color}selenium grid
> - Debugging with Remote WebDriver showed that it has the expected DesiredCapabilities (check screen attached) but when the browser was launched, it was launched without capabilites
> - Initially my thought was
> {noformat}
> <property name="chromeExperimentalOption">
> {noformat}
> had an issue but when i added
> {noformat}
> <property name="chromeArguments">-start-maximized</property>
> {noformat}
> it did not worked as well. Without Grid both worked.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 3 months
[JBoss JIRA] (ARQ-2145) Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
by Matous Jobanek (JIRA)
[ https://issues.jboss.org/browse/ARQ-2145?page=com.atlassian.jira.plugin.s... ]
Matous Jobanek updated ARQ-2145:
--------------------------------
Affects Version/s: drone_2.1.0.Alpha1
> Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
> -------------------------------------------------------------------------
>
> Key: ARQ-2145
> URL: https://issues.jboss.org/browse/ARQ-2145
> Project: Arquillian
> Issue Type: Bug
> Components: Configuration
> Affects Versions: drone_2.1.0.Alpha1
> Environment: OS:Windows
> Browser:Chrome
> Reporter: Ankit Ojha
> Assignee: Matous Jobanek
> Attachments: image-2017-09-21-17-10-11-058.png
>
>
> Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
> +Arquillian.xml+
> {noformat}
> <property name="remoteAddress">${gridhubaddress}</property>
> <property name="remote">true</property>
> <property name="chromePrintOptions">true</property>
> <property name="chromeArguments">-start-maximized</property>
> <property name="chromeExperimentalOption">
> {
> "prefs": {
> "download.default_directory": "${downloadlocation}"
> }
> }
> </property>
> {noformat}
> *+Note+*
> - Desired Capabilities were captured and worked as expected when executed {color:red}without {color}selenium grid
> - Debugging with Remote WebDriver showed that it has the expected DesiredCapabilities (check screen attached) but when the browser was launched, it was launched without capabilites
> - Initially my thought was
> {noformat}
> <property name="chromeExperimentalOption">
> {noformat}
> had an issue but when i added
> {noformat}
> <property name="chromeArguments">-start-maximized</property>
> {noformat}
> it did not worked as well. Without Grid both worked.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 3 months
[JBoss JIRA] (ARQ-2145) Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
by Matous Jobanek (JIRA)
[ https://issues.jboss.org/browse/ARQ-2145?page=com.atlassian.jira.plugin.s... ]
Matous Jobanek reassigned ARQ-2145:
-----------------------------------
Assignee: Matous Jobanek
> Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
> -------------------------------------------------------------------------
>
> Key: ARQ-2145
> URL: https://issues.jboss.org/browse/ARQ-2145
> Project: Arquillian
> Issue Type: Bug
> Components: Configuration
> Environment: OS:Windows
> Browser:Chrome
> Reporter: Ankit Ojha
> Assignee: Matous Jobanek
> Attachments: image-2017-09-21-17-10-11-058.png
>
>
> Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
> +Arquillian.xml+
> {noformat}
> <property name="remoteAddress">${gridhubaddress}</property>
> <property name="remote">true</property>
> <property name="chromePrintOptions">true</property>
> <property name="chromeArguments">-start-maximized</property>
> <property name="chromeExperimentalOption">
> {
> "prefs": {
> "download.default_directory": "${downloadlocation}"
> }
> }
> </property>
> {noformat}
> *+Note+*
> - Desired Capabilities were captured and worked as expected when executed {color:red}without {color}selenium grid
> - Debugging with Remote WebDriver showed that it has the expected DesiredCapabilities (check screen attached) but when the browser was launched, it was launched without capabilites
> - Initially my thought was
> {noformat}
> <property name="chromeExperimentalOption">
> {noformat}
> had an issue but when i added
> {noformat}
> <property name="chromeArguments">-start-maximized</property>
> {noformat}
> it did not worked as well. Without Grid both worked.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 3 months
[JBoss JIRA] (ARQ-2145) Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
by Matous Jobanek (JIRA)
[ https://issues.jboss.org/browse/ARQ-2145?page=com.atlassian.jira.plugin.s... ]
Matous Jobanek commented on ARQ-2145:
-------------------------------------
Yeah,
please try to update to the latest version: {{2.4.2}} and check if you have still the same problem or if it is already fixed there.
In older versions of Drone, there was a problem with a proper setting of ChromeOptions for cases when selenium grid is used. In new versions (since 2.2.0) it should be fixed. Please give it with the latest one.
> Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
> -------------------------------------------------------------------------
>
> Key: ARQ-2145
> URL: https://issues.jboss.org/browse/ARQ-2145
> Project: Arquillian
> Issue Type: Bug
> Components: Configuration
> Environment: OS:Windows
> Browser:Chrome
> Reporter: Ankit Ojha
> Attachments: image-2017-09-21-17-10-11-058.png
>
>
> Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
> +Arquillian.xml+
> {noformat}
> <property name="remoteAddress">${gridhubaddress}</property>
> <property name="remote">true</property>
> <property name="chromePrintOptions">true</property>
> <property name="chromeArguments">-start-maximized</property>
> <property name="chromeExperimentalOption">
> {
> "prefs": {
> "download.default_directory": "${downloadlocation}"
> }
> }
> </property>
> {noformat}
> *+Note+*
> - Desired Capabilities were captured and worked as expected when executed {color:red}without {color}selenium grid
> - Debugging with Remote WebDriver showed that it has the expected DesiredCapabilities (check screen attached) but when the browser was launched, it was launched without capabilites
> - Initially my thought was
> {noformat}
> <property name="chromeExperimentalOption">
> {noformat}
> had an issue but when i added
> {noformat}
> <property name="chromeArguments">-start-maximized</property>
> {noformat}
> it did not worked as well. Without Grid both worked.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 3 months
[JBoss JIRA] (ARQ-2145) Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
by Ankit Ojha (JIRA)
[ https://issues.jboss.org/browse/ARQ-2145?page=com.atlassian.jira.plugin.s... ]
Ankit Ojha commented on ARQ-2145:
---------------------------------
We are using
{noformat}
<arquillian-drone-bom.version>2.1.0.Alpha1</arquillian-drone-bom.version>
{noformat}
Our usecase is to set Desired Capabilities with selenium grid and eventually set default download location to a specific location.
As stated in the description, it works perfectly fine without selenium grid configuration.
> Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
> -------------------------------------------------------------------------
>
> Key: ARQ-2145
> URL: https://issues.jboss.org/browse/ARQ-2145
> Project: Arquillian
> Issue Type: Bug
> Components: Configuration
> Environment: OS:Windows
> Browser:Chrome
> Reporter: Ankit Ojha
> Attachments: image-2017-09-21-17-10-11-058.png
>
>
> Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
> +Arquillian.xml+
> {noformat}
> <property name="remoteAddress">${gridhubaddress}</property>
> <property name="remote">true</property>
> <property name="chromePrintOptions">true</property>
> <property name="chromeArguments">-start-maximized</property>
> <property name="chromeExperimentalOption">
> {
> "prefs": {
> "download.default_directory": "${downloadlocation}"
> }
> }
> </property>
> {noformat}
> *+Note+*
> - Desired Capabilities were captured and worked as expected when executed {color:red}without {color}selenium grid
> - Debugging with Remote WebDriver showed that it has the expected DesiredCapabilities (check screen attached) but when the browser was launched, it was launched without capabilites
> - Initially my thought was
> {noformat}
> <property name="chromeExperimentalOption">
> {noformat}
> had an issue but when i added
> {noformat}
> <property name="chromeArguments">-start-maximized</property>
> {noformat}
> it did not worked as well. Without Grid both worked.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 3 months
[JBoss JIRA] (ARQ-2145) Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
by Matous Jobanek (JIRA)
[ https://issues.jboss.org/browse/ARQ-2145?page=com.atlassian.jira.plugin.s... ]
Matous Jobanek commented on ARQ-2145:
-------------------------------------
Hi,
thanks for reporting.
Which version of Drone do you use?
> Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
> -------------------------------------------------------------------------
>
> Key: ARQ-2145
> URL: https://issues.jboss.org/browse/ARQ-2145
> Project: Arquillian
> Issue Type: Bug
> Components: Configuration
> Environment: OS:Windows
> Browser:Chrome
> Reporter: Ankit Ojha
> Attachments: image-2017-09-21-17-10-11-058.png
>
>
> Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
> +Arquillian.xml+
> {noformat}
> <property name="remoteAddress">${gridhubaddress}</property>
> <property name="remote">true</property>
> <property name="chromePrintOptions">true</property>
> <property name="chromeArguments">-start-maximized</property>
> <property name="chromeExperimentalOption">
> {
> "prefs": {
> "download.default_directory": "${downloadlocation}"
> }
> }
> </property>
> {noformat}
> *+Note+*
> - Desired Capabilities were captured and worked as expected when executed {color:red}without {color}selenium grid
> - Debugging with Remote WebDriver showed that it has the expected DesiredCapabilities (check screen attached) but when the browser was launched, it was launched without capabilites
> - Initially my thought was
> {noformat}
> <property name="chromeExperimentalOption">
> {noformat}
> had an issue but when i added
> {noformat}
> <property name="chromeArguments">-start-maximized</property>
> {noformat}
> it did not worked as well. Without Grid both worked.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 3 months
[JBoss JIRA] (ARQ-2145) Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
by Ankit Ojha (JIRA)
[ https://issues.jboss.org/browse/ARQ-2145?page=com.atlassian.jira.plugin.s... ]
Ankit Ojha updated ARQ-2145:
----------------------------
Description:
Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
+Arquillian.xml+
{noformat}
<property name="remoteAddress">${gridhubaddress}</property>
<property name="remote">true</property>
<property name="chromePrintOptions">true</property>
<property name="chromeArguments">-start-maximized</property>
<property name="chromeExperimentalOption">
{
"prefs": {
"download.default_directory": "${downloadlocation}"
}
}
</property>
{noformat}
*+Note+*
- Desired Capabilities were captured and worked as expected when executed {color:red}without {color}selenium grid
- Debugging with Remote WebDriver showed that it has the expected DesiredCapabilities (check screen attached) but when the browser was launched, it was launched without capabilites
- Initially my thought was
{noformat}
<property name="chromeExperimentalOption">
{noformat}
had an issue but when i added
{noformat}
<property name="chromeArguments">-start-maximized</property>
{noformat}
it did not worked as well. Without Grid both worked.
was:
Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
+Arquillian.xml+
{noformat}
<property name="remoteAddress">${gridhubaddress}</property>
<property name="remote">true</property>
<property name="chromePrintOptions">true</property>
<property name="chromeArguments">-start-maximized</property>
<property name="chromeExperimentalOption">
{
"prefs": {
"download.default_directory": "${downloadlocation}"
}
}
</property>
{noformat}
*+Note+*
- Desired Capabilities were captured and worked as expected when executed {color:red}without {color}selenium grid
- Debugging with Remote WebDriver showed that it has the expected DesiredCapabilities (check screen attached) but when the browser was launched, it was launched without capabilites
- Initially my thought was <property name="chromeExperimentalOption"> had an issue but when i added<property name="chromeArguments">-start-maximized</property> , it did not worked as well. Without Grid both worked.
> Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
> -------------------------------------------------------------------------
>
> Key: ARQ-2145
> URL: https://issues.jboss.org/browse/ARQ-2145
> Project: Arquillian
> Issue Type: Bug
> Components: Configuration
> Environment: OS:Windows
> Browser:Chrome
> Reporter: Ankit Ojha
> Attachments: image-2017-09-21-17-10-11-058.png
>
>
> Unable to pass DesiredCapabilities from arquillian.xml with selenium grid
> +Arquillian.xml+
> {noformat}
> <property name="remoteAddress">${gridhubaddress}</property>
> <property name="remote">true</property>
> <property name="chromePrintOptions">true</property>
> <property name="chromeArguments">-start-maximized</property>
> <property name="chromeExperimentalOption">
> {
> "prefs": {
> "download.default_directory": "${downloadlocation}"
> }
> }
> </property>
> {noformat}
> *+Note+*
> - Desired Capabilities were captured and worked as expected when executed {color:red}without {color}selenium grid
> - Debugging with Remote WebDriver showed that it has the expected DesiredCapabilities (check screen attached) but when the browser was launched, it was launched without capabilites
> - Initially my thought was
> {noformat}
> <property name="chromeExperimentalOption">
> {noformat}
> had an issue but when i added
> {noformat}
> <property name="chromeArguments">-start-maximized</property>
> {noformat}
> it did not worked as well. Without Grid both worked.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 3 months