[wtr-general] Re: what watir method use with img tag?
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 some methods like ie.button, ie.image, ie.click but no one of them works when running the watir script. This is the html I have: img alt=Manage Account src=/img/buttons/navigation/btn-manage- account.gif/ What method can I use for clicking or getting the Manage account option. Thanks a lor! Rodrigo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: what watir method use with img tag?
.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. orde On Nov 20, 7:49 am, Rodrigo rodrigo.bert...@gmail.com wrote: Hi everybody, I'm having some issues working with img tags. I've tried some methods like ie.button, ie.image, ie.click but no one of them works when running the watir script. This is the html I have: img alt=Manage Account src=/img/buttons/navigation/btn-manage- account.gif/ What method can I use for clicking or getting the Manage account option. Thanks a lor! Rodrigo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: what watir method use with img tag?
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 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+El... Hope that helps. orde On Nov 20, 7:49 am, Rodrigo rodrigo.bert...@gmail.com wrote: Hi everybody, I'm having some issues working with img tags. I've tried some methods like ie.button, ie.image, ie.click but no one of them works when running the watir script. This is the html I have: img alt=Manage Account src=/img/buttons/navigation/btn-manage- account.gif/ What method can I use for clicking or getting the Manage account option. Thanks a lor! Rodrigo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: what watir method use with img tag?
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. When in doubt, I try each in an irb session until I get a solution that works. Good luck! -Tiffany On Nov 20, 10:43 am, Rodrigo rodrigo.bert...@gmail.com wrote: 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 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+El... Hope that helps. orde On Nov 20, 7:49 am, Rodrigo rodrigo.bert...@gmail.com wrote: Hi everybody, I'm having some issues working with img tags. I've tried some methods like ie.button, ie.image, ie.click but no one of them works when running the watir script. This is the html I have: img alt=Manage Account src=/img/buttons/navigation/btn-manage- account.gif/ What method can I use for clicking or getting the Manage account option. Thanks a lor! Rodrigo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---