[Wtr-development] [JIRA] Commented: (WTR-166) Wait for XHRs and timers to complete before considering the page loaded (either as a configurable option or always on)

Charley Baker (JIRA) watirjira at gmail.com
Sat Oct 2 15:09:30 EDT 2010


    [ http://jira.openqa.org/browse/WTR-166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19869#action_19869 ] 

Charley Baker commented on WTR-166:
-----------------------------------

Interesting issue, any further thoughts on this? 

> Wait for XHRs and timers to complete before considering the page loaded (either as a configurable option or always on)
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: WTR-166
>                 URL: http://jira.openqa.org/browse/WTR-166
>             Project: Watir
>          Issue Type: New Feature
>          Components: Wait
>    Affects Versions: 1.5.0/1.5.1
>         Environment: x
>            Reporter: Jeff Fry
>            Priority: Major
>             Fix For: Next
>
>
> Watir.wait() listens to whether IE thinks its done loading, and then checks to see that the main document and any sub documents/frames have finished loading. More and more, there are pages that on load also kick off various XHRs and timers. For me - and possibly for a growing number of folks, testing more AJAXy applications - it would be great to expand wait() to check if there are any XHRs or timers pending, in additional to the checks it currently makes. 
> Note, I don't know, but there may be applications where an XHR is intentionally left open at all times. If this happens I would guess that it's rare, but if we change the default behavior of watir.wait() to wait for pending XHRs and timers, we might want to give a config option that turns this off as well.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the Wtr-development mailing list