[Wtr-general] How can I access object under iframe?

Cain, Mark Mark_Cain at rl.gov
Mon May 15 15:31:09 EDT 2006


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: wtr-general-bounces at rubyforge.org
[mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Jonathan Ni
Sent: Monday, May 15, 2006 11:40 AM
To: wtr-general at rubyforge.org
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060515/e95d1a37/attachment.html 


More information about the Wtr-general mailing list