comparing innertext of a weblement with some value
There are two dropdowns From and to.I select cities from both and click on search.
After selecting Thorugh GetRoProperty I get the values in a variable(From=Browser.page.weblist.getroproperty(" value"))
On the listing page there is a webelement at the top
with innertext "Delhi(DEL) - London(LoN)"
Now using GetRO Property I am Able to Find to get the inner text in variable.
using Split Function M able to reduce the innertext to "Delhi"
Say City= Delhi
But when I Compare( From=City using If COndition) the two values That is the one that I selected in Th from Drop down and the one in te listing page.I am not able to compare.The conditon is failing.
QTO is not comparing. I dont know why.
Even when Both the values are same.
I need a help on it.I had already tried it many time but not able to find the reason.