Yes, the frame itself must be dereferenced.
Example: Multiple nested frames and a hyper link to be clicked.
ie.frame(:name, "frame3").frame(:name, "frame3").link(:index, 1).click
-
Posted via Jive Forums
http://forums.openqa.org/
Lonny asked:
> Along that line, can anyone answer this for me? A frame object MUST have a
> URL, or the
> frame will be blank. Does anyone know how I can pull that property out of the
> frame? That is,
> something like frame(:name, 'my_frame').url, which would return a url or nil?
Try this...
.url, which would return a url or nil?
I am aware that there is not a url method for frames within Watir. But
does anyone know how I can code one?
Lonny Eachus
==
Subject:
[Wtr-general] Navigating in IE frames
Yes, you do need to specify the frame. Try something like: ie.frame('FrameName').text_field(:name, "inpListFilter" ).set("adm" )You should be able to incorporate the FrameName into your 'ECMTestFixture' object.
To see the frames that Ruby/Watir sees, try the following at an
Hi. I am building a test tool to automate navigation through a UI with IE
frames. Text fields, buttons, lists, and web dialog boxes are all targets for
my tool. The examples I see in the watir user guide don't mention frames. I
have tried navigating to a text field, using the user guide example