You might have to play around with different combinations of this but try:

 

$ie.frame(:name, ‘name’).show_all_objects

$ie.frame(:name, ‘id_name’).frame(:name, ‘nested_name’).show_all_objects

 

Whatever object are displayed can be accessed at that level.  You may need to do a ‘Veiw Source ‘ on your page to get names and a ids etc.  I have found the unittests very helpful to find examples.

 

Hope this helps,

 

--Mark

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Ni
Sent: Monday, May 15, 2006 11:40 AM
To: [email protected]
Subject: [Wtr-general] How can I access object under iframe?

 


Hi All:
        I am new to watir.
        Recently I try to use WATIR to do my web application testing, but the page I am testing on using iframe inside frames. And all the text fields and buttons are inside iframes. I am looking at WATIR API, and I couldn't get much out from it about iframe.

Could anyone give me an hint?

Thanks a lot.

Regards,
Jonathan Ni

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to