I have created a function that basically tests that a correct page is displayed after a link is selected. The function compares what is expected and what is actually displayed. I use Page names. One script is failing but it reports (lets say)that
Page Expected was : Sample
Actiual Page displayed : Sample
They are identical and I cannot understand why it is failing.
Code of function below. Any help would be appreciated.