[Wtr-general] How to discover and address items within nested frames.

2006-09-08 Thread haggard
I have a web app that consists of multiple nested frames and, for the most part, show_all_objects works just fine for discovering how to navigate the frames and address the individual elements. However, there are some places where I just can't figure out how to access the items present and so I

Re: [Wtr-general] How to discover and address items within nested frames.

2006-09-08 Thread haggard
Ah, here's a tip. Use the 'html' function to get the string that Watir sees. Once that is present then things become much clearer. In the previous example, it now becomes obvious what was wrong and how to address the 'fromdate' combo. brbr puts ie.frame(:name, frame3).frame(:name,

Re: [Wtr-general] How to discover and address items within nested frames.

2006-09-08 Thread David Schmidt
Here's a small hint which can make your Watir code more readable and a bit faster. When you're identifying an element that may may be many frames deep, or even deep within a single frame, save the element into a variable. This way Watir doesn't go through the entire search process every time