Hi Gert, in case you feel like the clickLink step gets too "uncertain", you may want to check if the link - has some HTMLID that could be used or - its HREF attribute something "unique" in it (...like "screenid" or "sectionid" that I read from your previous example)
Regards, Thomas Thomas Klein Senior Associate QA | SapientNitro ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Gert Pauwels Sent: Monday, March 01, 2010 3:35 PM To: [email protected] Subject: RE: [Webtest] Handling non-breaking spaces and other stuff 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&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&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 details". How can I handles these appropriately? Gert ________________________________ Hotmail: Free, trusted and rich email service. Get it now.<https://signup.live.com/signup.aspx?id=60969> ________________________________ Hotmail: Powerful Free email with security by Microsoft. Get it now.<https://signup.live.com/signup.aspx?id=60969>

