Hi,

 

yes, they are in a table, and this is the xpath that I am using (with your 
suggestion in it):

 

<verifyXPath description="Verify Caption Top Section" 
xpath="normalize-space(/html/body/table/tbody/tr[2]/td/ul/li/a[contains(.,'Customer&amp;nbsp;details')])"
 text="Customer details"/>


I need to be absolutely certain that the caption I write in text="New Alerts" 
is the exact caption that Canoo finds, because I may also have captions like 
Customer Address details, Customer Account details etc. Would your suggestions 
also be returning 'true' for those captions? If so, then I cannot use them. 

Is there any possibility to remove the non-breaking space and replace it with a 
'regular' space?

 

Gert 

 


From: [email protected]
To: [email protected]
Subject: Re: [Webtest] Handling non-breaking spaces and other stuff
Date: Mon, 1 Mar 2010 08:26:57 -0600

I'm assuming the text you supplied is in a table just so my below xpath 
statements are correct.  The suggestions I have are in the brackets.

Have you tried:
//td[contains(.,'Customer&amp;nbsp;details')]

How about this workaround:
//td[contains('Customer') and contains('details')]




 
Hi,
 
I seem to be stumbling upon other issues as I advance in my webtests. Have any 
of you had to deal with nbsp's in your webpage tests?
 
I need to click links that are displayed as Customer details but webtests fail 
on the caption because in the source page they are written as 
"Customer&nbsp;details".
 
How can I handles these appropriately?
 
Gert



Hotmail: Free, trusted and rich email service. Get it now.                      
                  
_________________________________________________________________
Hotmail: Powerful Free email with security by Microsoft.
https://signup.live.com/signup.aspx?id=60969

Reply via email to