[arquillian-issues] [JBoss JIRA] (ARQGRA-297) Unable to access to WebElement after HTTP request

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Mon Apr 29 02:31:53 EDT 2013


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

Lukáš Fryč edited comment on ARQGRA-297 at 4/29/13 2:31 AM:
------------------------------------------------------------

Btw these are bad ideas
{code}
GrapheneExtension.pause(5000);
GrapheneExtension.getDriver().navigate().refresh();    //add for fix this issue
{code}
you should always wait for exact condition and be independent of timing.
Refresh of the page might be misleading - imagine if the login will stop work and user will need to reload the page to make it work. Your tests will pass, but the application will be definitely broken in such a case.
                
      was (Author: lfryc):
    Btw these are bad ideas
{code}
GrapheneExtension.pause(5000);
GrapheneExtension.getDriver().navigate().refresh();    //add for fix this issue
{code}
you should always wait for exact condition and be independent of timing.

                  
> Unable to access to WebElement after HTTP request
> -------------------------------------------------
>
>                 Key: ARQGRA-297
>                 URL: https://issues.jboss.org/browse/ARQGRA-297
>             Project: Arquillian Graphene
>          Issue Type: Bug
>    Affects Versions: 2.0.0.Alpha4
>         Environment: Fedora 16, Firefox/Chrome
>            Reporter: Sona Jamborova
>            Priority: Critical
>         Attachments: seq1.png, seq2.png, seq3.png
>
>


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