Page 1 of 1

innertext property is not identifying spaces.

Posted: Fri Oct 26, 2012 6:07 am
by rkarhe
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,

Re: innertext property is not identifying spaces.

Posted: Fri Oct 26, 2012 4:04 pm
by Ciege
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?