Hi, guys
I use watir to wait for some elements like this:
{{{
sleep(3) until ie.frame(:id, "frame_main").exist? #Wait for the frame
sleep (3) until ie.frame(:id, "frame_main").div(:id,
"menu_bar").exist? #Then wait for the div under the 'frame_main'
}}}
These run smoothly in IE with watir, however, it doesn't work well
with Firewatir in Fx 2:
c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.2.0/./MozillaBaseElement.rb:
866:in `assert_exists': Unable to locate object, using id and menu_bar
(FireWatir::Exception::UnknownObjectException)
from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.2.0/./
MozillaBaseElement.rb:1310:in `method_missing'
Unable to locate the div object. Could anyone kindly to tell me how to
fix it? It has confused me for hours. Thanks a lot:-)