Hi I tried the examples you gave me but I get the following error message when I try and use XPATH:
Watir::Exception::UnknownObjectException: Unable to locate element, using :jssh_ name Is there any documents about this error message, as I cannot seem to find a thread in this group? Thanks On Dec 3, 9:13 am, Željko Filipin <[email protected]> wrote: > On Thu, Dec 3, 2009 at 4:03 PM, tester86 <[email protected]> wrote: > > input type= submit value = submit > > $b.element_by_xpath("//value[contains(@value , 'Submit')]").click() > > Try this (not tested): > > $b.element_by_xpath("//input[contains(@value , 'submit')]").click > > or > > $b.element_by_xpath("//inp...@value='submit']").click > > or > > $b.button(:value, "submit").click > > Željko > -- > watir.com - community manager > watirpodcast.com - host -- 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
