[arquillian-issues] [JBoss JIRA] (ARQ-1316) Argument is of an illegal type, when attempting to switchTo an iframe

Simon Knott (JIRA) jira-events at lists.jboss.org
Tue Feb 26 10:02:58 EST 2013


Simon Knott created ARQ-1316:
--------------------------------

             Summary: Argument is of an illegal type, when attempting to switchTo an iframe
                 Key: ARQ-1316
                 URL: https://issues.jboss.org/browse/ARQ-1316
             Project: Arquillian
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Extension - Drone
    Affects Versions: 1.0.3.Final
         Environment: Windows 7
JDK 1.7U10 64-bit
Drone 1.2.0Alpha
Graphen 2.0.0.Alpha3
            Reporter: Simon Knott
            Assignee: Karel Piwko


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


More information about the arquillian-issues mailing list