[
https://issues.jboss.org/browse/ARQGRA-494?page=com.atlassian.jira.plugin...
]
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)