[wtr-general] Re: what watir method use with img tag?

2009-11-20 Thread Tiffany Fodor
Hi Rodrigo! Clicking an image works for me in the apps I've tested. Have you tried this? ie.image(:src, /manage-account/).click Hope this helps! -Tiffany On Nov 20, 8:49 am, Rodrigo rodrigo.bert...@gmail.com wrote: Hi everybody, I'm having some issues working with img tags. I've tried

[wtr-general] Re: what watir method use with img tag?

2009-11-20 Thread orde
.image is the correct method. You might find this page useful: http://wtr.rubyforge.org/rdoc/classes/Watir/Container.html Also, this (very useful) page summarizes the methods supported by element: http://wiki.openqa.org/display/WTR/Watir+Methods+Supported+by+HTML+Element Hope that helps.

[wtr-general] Re: what watir method use with img tag?

2009-11-20 Thread Rodrigo
Thanks a lot! I'll try that suggestions, but I have tried this way ie.link(:text, Log In).click and it worked. What do you think about that method? Thanks again, Rodrigo On 20 nov, 13:46, orde ohil...@gmail.com wrote: .image is the correct method.  You might find this page

[wtr-general] Re: what watir method use with img tag?

2009-11-20 Thread Tiffany Fodor
Hi! If it works, go with it. :) Sometimes it's difficult to discern exactly what to click on to perform the desired action. What looks like a button may actually use a link to perform the action (as in your case). I've also run into cases where what looks like a link is actually a span.