[
http://jira.openqa.org/browse/WTR-166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19889#action_19889
]
Jarmo Pertman commented on WTR-166:
-----------------------------------
I don't think you can do it easily with add_checker because every page behaves
differently having different conditions to be met. I'd recomment using
wait_until and similar things to play in here.
Jari made few nice additions to current Waiter.wait_until in his
Watir-WebDriver project, which i'd like to incorporate into Watir (with minor
changes) also. It's also ok by Jari.
Here are some examples:
http://github.com/jarib/watir-webdriver/wiki/FAQ
Here is the code itself:
http://github.com/jarib/watir-webdriver/blob/master/lib/watir-webdriver/extensions/wait.rb
And then we could document using these methods.
What do you think?
If it's ok, i'll gonna do it soon.
> Document how to use the add_checker method to add custom wait logic to Watir
> ----------------------------------------------------------------------------
>
> 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
> Assignee: Bret Pettichord
> 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