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.
i don't know why happening .please help
use trim()
remove leading , trailing spaces!!
Comments
Post a Comment