[arquillian-issues] [JBoss JIRA] (ARQGRA-232) Enriched WebElement cannot be converted to JSON without manual unwrapping

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Fri Dec 21 03:37:09 EST 2012


     [ https://issues.jboss.org/browse/ARQGRA-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukáš Fryč updated ARQGRA-232:
------------------------------

     Original Estimate: 30 minutes
    Remaining Estimate: 30 minutes

    
> Enriched WebElement cannot be converted to JSON without manual unwrapping
> -------------------------------------------------------------------------
>
>                 Key: ARQGRA-232
>                 URL: https://issues.jboss.org/browse/ARQGRA-232
>             Project: Arquillian Graphene
>          Issue Type: Bug
>            Reporter: Jiří Štefek
>            Assignee: Juraj Húska
>            Priority: Minor
>             Fix For: 2.0.0.Alpha3
>
>   Original Estimate: 30 minutes
>  Remaining Estimate: 30 minutes
>
> When you use something like this, WebElementToJsonConverter cannot convert enriched input:
> {code}
> @FindBy(css="input[id$=input]")
> WebElement input;
> public void blurInput(){
>         JavascriptExecutor js = (JavascriptExecutor) GrapheneContext.getProxy();
> >>>        js.executeScript("jQuery(arguments[0]).trigger('blur')", input);  <<<
> }
> {code}
> error: 
> {code}
> java.lang.IllegalArgumentException: Argument is of an illegal type: $Proxy37
> 	at org.openqa.selenium.remote.internal.WebElementToJsonConverter.apply(WebElementToJsonConverter.java:78)
> 	at com.google.common.collect.Iterators$8.next(Iterators.java:730)
> 	at com.google.common.collect.Lists.newArrayList(Lists.java:136)
> 	at com.google.common.collect.Lists.newArrayList(Lists.java:117)
> 	at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:437)
> 	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:200)
> 	at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler$1.invoke(GrapheneProxyHandler.java:134)
> 	at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.invoke(GrapheneProxyHandler.java:164)
> 	at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.intercept(GrapheneProxyHandler.java:172)
> 	at org.openqa.selenium.firefox.FirefoxDriver$$EnhancerCGLIB$$cd9d0009.executeScript(<generated>)
> {code}
> Missing some interface in created proxy?

--
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