[arquillian-issues] [JBoss JIRA] (ARQGRA-280) Refactor handling of staleness to improve performance

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Wed Oct 2 09:15:04 EDT 2013


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

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

    Fix Version/s: 2.1-Tracking
                       (was: 2.0-Tracking)


Let's incubate a fix in 2.1 and merge it back to 2.0 once tested properly.
                
> Refactor handling of staleness to improve performance
> -----------------------------------------------------
>
>                 Key: ARQGRA-280
>                 URL: https://issues.jboss.org/browse/ARQGRA-280
>             Project: Arquillian Graphene
>          Issue Type: Task
>    Affects Versions: 2.0.0.Alpha3
>            Reporter: Jan Papousek
>             Fix For: 2.1-Tracking
>
>   Original Estimate: 4 hours
>  Remaining Estimate: 4 hours
>
> The current situation of handling staleness is it works purely accidentally in some cases and it prevents any caching of web elements.
> Imagine the following code:
> {code}
> Action action = new Actions(driver).moveToElement(element).build();
> ... // some action causing staleness
> action.perform();
> {code}
> The previous code doesn't throw StaleElementReferenceException only in the case when the action causing staleness finishes before the requested action starts performing and when there is no caching of web elements. Currently Graphene can't force the action to perform again when StaleElementReferenceException is thrown.
> In the case of caching the scenerio would be:
> # element is loaded and put to the cache
> # ... some actions ...
> # action causing staleness is performed
> # the requested action starts performing
> -- cached element is used => StaleElementReferenceException

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