Forum: Ruby Getting an <iframe> in Watir

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
D0f3aa01823e5e2e6db223e32d903968?d=identicon&s=25 Jack (Guest)
on 2007-06-26 22:30
(Received via mailing list)
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

<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

Any ideas would be great. TIA.
990bf71a4e84e1145a3131f35656dc18?d=identicon&s=25 List Rb (listx300108u79872)
on 2007-06-28 05:30
(Received via mailing list)
What does ie.frame("facframe") yield?
This topic is locked and can not be replied to.