[arquillian-issues] [JBoss JIRA] (ARQGRA-494) Enrich WebElements returned by JavascriptExecutor (to protect against staleness etc)

Vsevolod Golovanov (JIRA) issues at jboss.org
Wed Jan 18 05:24:00 EST 2017


    [ https://issues.jboss.org/browse/ARQGRA-494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13350261#comment-13350261 ] 

Vsevolod Golovanov commented on ARQGRA-494:
-------------------------------------------

I should clarify the purpose of this, because I understand that the staleness protection here...
-- is probably not necessary, because you don't expect executeScript to be lazy; or at least it's reasonable to not provide protection here;
-- is not really doable as there is no By condition and you can't just execute a random script again, because it could have side effects.

I really just want the WebElements to be proxified, so that I could easily add my interceptors. I need to intercept all calls to WebElement's, regardless of how they were located.

Right now I'm proxifying these myself with org.jboss.arquillian.graphene.proxy.GrapheneProxy.

> Enrich WebElements returned by JavascriptExecutor (to protect against staleness etc)
> ------------------------------------------------------------------------------------
>
>                 Key: ARQGRA-494
>                 URL: https://issues.jboss.org/browse/ARQGRA-494
>             Project: Arquillian Graphene
>          Issue Type: Bug
>    Affects Versions: 2.1.0.Final
>            Reporter: Vsevolod Golovanov
>
> ARQGRA-252 took care of elements found by manually calling SearchContext#findElement*, but there is still org.openqa.selenium.JavascriptExecutor:
> {code}
> jsExecutor.executeScript("return $('*').toArray();");
> {code}
> This would return unproxified WebElement instances.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the arquillian-issues mailing list