Re: [wtr-general] Xpath cell

2010-01-27 Thread Bharath
Željko, Thank you very much. $browser.cell(:class=>'rptName').text worked for me. but i when I have time i will try to work with xpath. Thanks again BK On Wed, Jan 27, 2010 at 11:31 AM, Željko Filipin < zeljko.fili...@wa-research.ch> wrote: > On Wed, Jan 27, 2010 at 5:25 PM, Bharath wrote: > >

Re: [wtr-general] Xpath cell

2010-01-27 Thread Željko Filipin
On Wed, Jan 27, 2010 at 5:25 PM, Bharath 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, an

Re: [wtr-general] Xpath cell

2010-01-27 Thread Bharath
Željko, Thanks for referring to the firefox addon I was able to get the xpath for the text element i'm trying to get. Here is how it looks /html/body/form/table/tbody/tr[2]/td/table/tbody/tr/td[3]/table/tbody/tr[2]/t...@class='rptName' and position()=2]/text() I tried using the second option you su

Re: [wtr-general] Xpath cell

2010-01-27 Thread Željko Filipin
On Wed, Jan 27, 2010 at 3:58 PM, BK wrote: > The HTML looks like this - TEXT I NEED > TO CAPTURE > How should I use xpath to get that text or to verify if that text > exists? Why do you insist on using xpath if you do not know how to use it? Without xpath, you could do something like (if you w

[wtr-general] Xpath cell

2010-01-27 Thread BK
I’m trying to use XPATH to verify a string exists in a cell. There are no frames on the page. The HTML looks like this - TEXT I NEED TO CAPTURE How should I use xpath to get that text or to verify if that text exists? Thanks for you help. BK -- You received this message because you are subscri