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=')"><img src='../AllImages/images/icons/i_folder.gif' hspace='5' align='left'>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 -----
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


Reply via email to