Thomas,

unfortunately, there is no htmlid for this link - there should be, I agree, but 
there isn't one. 

Also, the attribute in its href is too fuzzy for my test. I also do not like 
screen IDs or section IDs since they change after a new set of screens has been 
imported. 

 

I guess I will have to test this manually then...

 

Gert
 


From: [email protected]
To: [email protected]; [email protected]
Subject: RE: [Webtest] Handling non-breaking spaces and other stuff
Date: Mon, 1 Mar 2010 14:49:12 +0000




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&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. Get it now.            
                          
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
https://signup.live.com/signup.aspx?id=60969

Reply via email to