Hi

I am now begining to understand about how to work with xpath
I used /xbody/ after table and simplified the xpath and now it is Working :)

Thanks for Your All Help



----- Original Message ----- From: "Marc Guillemot" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, August 16, 2006 2:18 PM
Subject: Re: [Webtest] Xpaths obtained from X-path explorer are not recognised by canoo



Hi,

do you fail to select a node with your new xpath or doesn't the onclick get
executed?
The onclick is on the td, not on the img. It is possible that it is not
correctly "forwarded" to the td when you click the img. In this case, you
just have to make your xpath a bit shorter to select the td rather than the
img.

Marc.


Prasanna-3 wrote:

Hi

I made changes in xpath as per Your Suggestion .. Unfortunately No success
Yet
I would like to state that I need clickElement property wit this xpath ass
the xpath I am refering is an Image
On clicking that Image some other actions will follow

But I did not find ClickButton and ClickLink useful as it is an onClick
event clicking on image would also do trick for me
But I am simply not able to click on that image . or Onclick Event

my HTML source looks like

<tr><td colspan='2' onMouseOver='MO_fold(event)'
onMouseOut='MU_fold(event)' class='fold_none'
onClick="foldermenu_gotourl('DistributionManager.aspx?folder_no=15&group=')">
../AllImages/images/icons/i_folder.gif Prasanna</td></tr>Note that the
iamge names used here are same for other rows in table to In such a
situation How do I define xpath ?Is there any solution to my problem
?Please Let me know If anyone has handled such events----- Original
Message ----- From: Denis N. Antonioli
  To: [email protected]
  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





--
View this message in context: http://www.nabble.com/Xpaths-obtained-from-X-path-explorer-are-not-recognised-by-canoo-tf2103336.html#a5828716
Sent from the WebTest forum at Nabble.com.

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest



_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to