----- Original Message -----
Sent: Monday, August 14, 2006 7:16
PM
Subject: Re: [Webtest] Xpaths obtained
from X-path explorer are not recognised by canoo
Hi
it's an FAQ: webtest, like most moder browsers, normalizes the html pages
before testing it.
Specifically, it inserts a <tbody> in each table, so your xpath
should be:
//[EMAIL PROTECTED]'Form1']/table[2]/tbody/tr[2]/td/table/tbody/tr/td[2]/table[4]/tbody/tr/td[1]/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td/table/tbody/tr/td[2]/img
Note that this is indeed a very long xpath, you may consider simplifying
it. But that's a different question.
Happy testing
dna
On 14 août 06, at 15:32, Prasanna wrote:
Hi
I am using xpath explorer to
find xpath and from xpath explorerI get correct xpath as
//[EMAIL PROTECTED]'Form1']/table[2]/tr[2]/td/table/tr/td[2]/table[4]/tr/td[1]/table/tr/td[2]/table/tr[4]/td/table/tr/td/table/tr/td[2]/img
But it seems if xpath is lengthy
Canoo fails to recoginse it
and gives
error
xpath not
found
But My xpath is correct as per
xpath explorer anyone knows solution for better xpath ??
Help me
please
it's an FAQ: webtest, like most moder browsers, normalizes the html pages
before testing it.
Specifically, it inserts a <tbody> in each table, so your xpath
should be:
//[EMAIL PROTECTED]'Form1']/table[2]/tbody/tr[2]/td/table/tbody/tr/td[2]/table[4]/tbody/tr/td[1]/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td/table/tbody/tr/td[2]/img
Note that this is indeed a very long xpath, you may consider simplifying
it. But that's a different question.
Happy testing
dna
--
Accept without pride, relinquish without a struggle.
-- Marcus Aurelius
Antonius, Meditations 8.33