I have a scenario like clicking on the images of home page and validating page title. I am facing an issue say I am using the getTitle()
function to get a page title to validate but it's returning the current URL, so my test case failed by comparing with the page title.
Here's my question: Why is it returning a current URL instead of a page title? If anyone faced this issue.
Note : This does not occur every time.