Aug
12
2008

Q. How do I get to element X in frame Y?

A. Make sure you prefix your element with the correct frame reference …
Example watir:

@b.goto('http://justaddwatir.com/watir/test_html/tc_0001_0100/test_0017.html')
@b.frame(:index, 2).button(:name, "submit").click

Note: sometimes frames aren’t easily identified with id or name attributes, the example above uses the index attribute to get to the second frame in the frameset.

Written by Tim Koopmans in: watir | Tags:

No Comments »

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes