how to wait for web page containing frame

S

Shraddha Dalvi

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,052
Members
48,769
Latest member
Clifft

Latest Threads

Top