selenium webdriver - even two string are same but when compare result are coming false -


i comparing 2 string.i reading string 1 i.e expectedresult excelsheet , string 2 i.e actualresult getting web page using " getelementbyxpath("errormsg_userpass").gettext();

but when equate 2 string though same result of comparison coming false i.e not same.

enter image description here

i don't know why happening .please help

use trim() remove leading , trailing spaces!!


Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -