mercredi 26 avril 2017

getTitle() function returns incorrect result in Selenium web driver

I am trying to run a simple automated test script to get webpage title and verify it by using in selenium-webdriver by Java and IE, but getTitle() method returns strange result.

I could see when I run my test script initially is getting load a default page with below URL,

http://localhost:44585/

and then its navigating to my target URL (which is mentioned in script).

But still script is capturing the page title from above localhost URL not from target URL. Please advise how can I bypass the default (http://localhost:44585/) page.

Aucun commentaire:

Enregistrer un commentaire