If you have a web page (ie object named @ie let's say), containing a frame, which contains another frame, which contains your element, you would do:

@ie.frame(:id, 'frame1').frame(:id, 'frame2').ECMTestFixture.text_field(:name, "inpListFilter" ).set("adm" )

Of course you can use name or whatever rather than id.


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?

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
From:
Dave Munns <[EMAIL PROTECTED]>
Date:
Thu, 10 Aug 2006 12:17:59 CDT

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, but watir complains that my text field identifier ("inpListFilter") is not found (I identified it with SpySmith). Do I have to qualify the identifier with a frame name or set the frame context ?

Here is the offending line:
                        ECMTestFixture.text_field(:name, "inpListFilter" ).set("adm" )
  

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

Reply via email to