[
http://jira.openqa.org/browse/WTR-166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19888#action_19888
]
Bret Pettichord commented on WTR-166:
-------------------------------------
I still think we need to add a hook to the wait method. Actually, we have such
a hook, in a way, and I've been using it at Convio. It is the "add_checker"
method. This adds a method that is run after wait runs, but you could write a
method (as I have) that waits for addition shit to happen in the browser before
releasing control.
So, I guess we could resolve this just by writing some documentation about how
the existing add_checker method could be used to add custom wait logic.
I guess I'm signging up to write this documentation.
> 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
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development