Getting an <iframe> in Watir

J

Jack

I am new to Ruby and Watir. I need to access a frame (iframe) in a
popup window and click a link in the frame. The frame tag is as
follows:

<iframe id=facframe src="/tools/faclist.jsp?ESOLsort=name"
width="100%" height="100%" frameborder="0"></iframe>


If I ie.show_frames I get the following:

there are 1 frames
frame index: 1 name:


Here is my code:

ie = Watir::IE.attach:)url,"mypage.jsp") #
ie.frame:)id, "facframe").link:)text, "mylink").click


Apparently, you can not access a frame by its id. If there is no
"name" attribute, how do you get access to the frame?

ruby 186-25
Watir 1.5.1.1081

Any ideas would be great. TIA.
-Jack
 

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

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,174
Latest member
BlissKetoACV
Top