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
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,
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