On Aug 2, 10:59 pm, "jane.liu" <[email protected]> wrote: > hi,james, > use the following code for trying: > > ie.image(:xpath,"//i...@src='="../ > App_Themes/co/locationdrilldown_hollow.jpg']").click
the .image method acts on elements defined with the <img> tag. In his case he has an <input type="image"> tag which is something that you use the .button method to address since 'image' inputs most frequently take on the appearance of some kind of button within the UI. (basic 'duck typing' in water.. if it looks like a button, try using .button on it) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---
