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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs