Actually, ie.wait(true) would do the same thing.

Here is the code for Frame#wait:

        def wait(no_sleep = false)
            @container.wait(no_sleep)
        end

It simply passes the wait call up to the container of the frame (the ie object).

What wait does is wait for the page to finish loading; it automatically checks sub frames. It sounds like what you want to do is wait until a particular object exists. We don't have anything like that in Watir.

Bret

At 07:12 PM 8/26/2005, Tuyet Cong-Ton-Nu wrote:

Just so you know, this doesn't do what you think:

   ie.frame("main").frame("sidebar").wait("analysisSidebarTabContent")

It's actually the same as

   ie.frame("main").frame("sidebar").wait(true)




Hmm! So the statement I used is actually is checking to see if the sidebar is there and NOT the analysisSideBarTabContent ?



Should I use this then for the analysisSideBarTabContent?

ie.frame("main").frame("sidebar").frame("analysisSidebarTabContent").wait(true)

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

_____________________
 Bret Pettichord
 www.pettichord.com

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to