[
https://issues.jboss.org/browse/ARQGRA-269?page=com.atlassian.jira.plugin...
]
Lukáš Fryč updated ARQGRA-269:
------------------------------
Fix Version/s: 2.0.0.Beta1
Argument is of an illegal type, when attempting to switchTo an
iframe
---------------------------------------------------------------------
Key: ARQGRA-269
URL:
https://issues.jboss.org/browse/ARQGRA-269
Project: Arquillian Graphene
Issue Type: Bug
Components: core
Affects Versions: 2.0.0.Alpha3
Environment: Windows 7
JDK 1.7U10 64-bit
Drone 1.2.0Alpha
Graphen 2.0.0.Alpha3
Reporter: Simon Knott
Fix For: 2.0.0.Beta1
I am getting the following exception thrown when attempting to switchTo() an iframe:
{code}java.lang.IllegalArgumentException: Argument is of an illegal type: $Proxy26
at
org.openqa.selenium.remote.internal.WebElementToJsonConverter.apply(WebElementToJsonConverter.java:78)
at
org.openqa.selenium.remote.RemoteWebDriver$RemoteTargetLocator.frame(RemoteWebDriver.java:797)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.invokeReal(GrapheneProxyHandler.java:209)
at
org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler$1.invoke(GrapheneProxyHandler.java:140)
at
org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.invoke(GrapheneProxyHandler.java:170)
at $Proxy27.frame(Unknown Source){code}
The test code which is causing the exception looks like:
{code}WebElement iframe = driver.findElement(By.tagName("iframe"));
TargetLocator targetLocator = driver.switchTo();
targetLocator.frame(iframe);{code}
--
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