In these cases, you should poll for a particular object to exist that doesn't show up until everything is ready to go. We will be providing a new "wait_for" method for all elements into Watir 1.5 to make this easy to do.
I think you can turn the status bar back on. ie.ie.statusbar = true or something like that.
Bret
On 5/12/06, Jonathan Ni
<[EMAIL PROTECTED]> wrote:
Hi All:
Rcently I have problem with finding the object on my html page, which major part is _javascript_ driven.
Observation: From exception, I found the script can't found the object(a button) on the page.
The exception through before the page finished loading. This is just eye observation, not exact timing. Page finished loading about half second later than the exception.
I do have "waitUntilLoaded" method to keep control before do the button click. "waitUntilLoaded" method using while getDocument.readyState != 'complete'.
However, this seems not working on this case. The most objects on the page(link, button, and select box) are generated by _javascript_.
Could anyone give a help on better handling this situation?
By the way, the IE's status bar also disabled.
Regards,Jonathan Ni
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
