It's a bug in the Watir codebase. As you pointed out, there is a workaround, but it should work with the existing code. It's been reported as a jira issue and we're working on it.

-Charley

On 8/8/06, Bach Le <[EMAIL PROTECTED]> wrote:
Rand,

ie.button(:src, 'https://www.entertainment.com/images/button_continue.gif').click

should be enough to click the button, however, for consistency reasons there shouldn't be a reason why it works without the form specified when it is in fact a form element. As I noted before, it does work in 1.4.1 and it is not only more explicit and clear when using it with form included, it is logical and intuitive.

I took your suggestion and tried it with "image" instead of button and unfortunately it does not work. I tried both with ie.form(:name, ...).image and just ie.image.

Thanks for replying, I didn't even think about using "image" but in this case, it didnt work.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=3381&messageID=9501#9501
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

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

Reply via email to