From: Shraddha Dalvi Date: 2009-09-14T15:30:03+09:00 Subject: how to wait for web page containing frame Hi, We have scripted web based application in which some of pages contains frames.If the frame in page takes 1 sec to download,script throws out the pop up.We have tried by using following code :- $ie.frame(:name,"frame_menu").link(:text,/Wealth Management/).click wait_time = 0 start_time = Time.now while (! ($ie.ie.busy)) sleep 0.2 wait_time = Time.now - start_time if wait_time > 30 wait_time = 0 break end end $ie.wait sleep 5 assert($ie.frame(:name,/frame_wlm/).frame(:name,/page/).contains_text(/transactions in the specified date range/)) assert($ie.frame(:name,"frame_acct").link(:text,/Summary/).exists?) But it could not worked. Also,using following code is not worked:- $ie.frame(:name,"frame_menu").link(:text,/Third Party Account/).click Watir::Waiter::wait_until { $ie.frame(:name,"frame_txn").link(:text,/Print This Page/).exists?} Watir::Waiter::wait_until { $ie.frame(:name,"frame_txn").text_field(:name,"fldUserReference").exists?} Watir::Waiter::wait_until { $ie.frame(:name,"frame_menu").link(:text,/Account Activity/).exists?} Kindly suggest. -- Posted via http://www.ruby-forum.com/.