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.
Ask general questions here.
2 posts • Page 1 of 1
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!