Hi,

 

     When i navigate through the menu tree, the nodes takes some 2 seconds
to load, mean while script fails saying that it is unable to find the node
element.

 

 I used wait_until in my script, even then it fails. 

 

It does not fail all the time, this code is inside the loop and it fails
after the loop executes some 25 times. 

What should i do, so that the script waits till the nodes appear on the
screen and then click on the link.

 

I use windows vista and IE7

 

My code is 

 

wait_until { $ie.frame("leftFrame").link(:text,"EMS").exists?}

$ie.frame("leftFrame").link(:text,"EMS").click

 

wait_until $ie.frame("leftFrame").link(:text,"ADMINISTRATOR").exists?}

$ie.frame("leftFrame").link(:text, ,"ADMINISTRATOR").click

 

wait_until {$ie.frame("leftFrame").link(:text,"School").exists?}

$ie.frame("leftFrame").link(:text, "School").click

 

wait_until {$ie.frame("leftFrame").link(:text,"Create School").exists?}

$ie.frame("leftFrame").link(:text,"Create School").click

 

 

Regards,

Hema


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to