On Wed, Jan 27, 2010 at 5:25 PM, Bharath <bkalt...@gmail.com> wrote: > $browser.cell(:xpath, "//t...@class='rptName']/") > Watir::Exception::UnknownObjectException: Unable to locate element, using :xpath, "//t...@class='rptName']"
XPath is black magic to me. I rarely use it and I always have to look up the syntax, and I do not have the time at the moment. Try this: browser.cell(:class => "rptName").text If the cell is child of any element that could be uniquely identified, you could use something like this: browser.element(how => what).cell(:class => "rptName").text Željko -- 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