[Wtr-general] Navigating in IE frames
Paul Carvalho
tester.paul at gmail.com
Thu Aug 10 13:49:26 EDT 2006
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 IRB prompt:
> ie.show_frames
On 10/08/06, Dave Munns <forum-watir-users at openqa.org> wrote:
>
> 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" )
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060810/596efaf2/attachment.html
More information about the Wtr-general
mailing list