innertext property is not identifying spaces.

Ask general questions here.
rkarhe
Posts: 42
Joined: Thu Jul 28, 2011 5:31 am

innertext property is not identifying spaces.

Post by rkarhe » Fri Oct 26, 2012 6:07 am

innertext property is not working as expected.

let's say innertext giving me some string "Sample Test" and I have a string variable "Sample Test", when I am comparing these two it's showing unequal. Whereas I tried removing blank spaces between both of them and adding spaces again and then compare shows it as equal.

Thanks,

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: innertext property is not identifying spaces.

Post by Ciege » Fri Oct 26, 2012 4:04 pm

Are you sure they are spaces and not unprintable characters like \r or \n? Or even are you sure there is no leading or trailing whitespace in the text?
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...