Sunday 30 December 2012

Handling Authentication Required pop up using Selenium

To handle the 'Authentication Required' pop up using selenium from Firefox web driver you can use the following web driver code:


baseUrl = "https://NXTest:Test123@apwms.qa.redbond.net/ui/";   
driver.get(baseUrl);


where 'NXTest' will be your user name and 'Test123' the password.


Hope this tip is of some help.  
 

3 comments:

  1. No, This code does not work for me on firefox.

    ReplyDelete
  2. Brijesh,

    If you are getting any error message, please post it as a comment here.

    ReplyDelete
  3. i am having 2.27 chrome driver version. My chrome browser version is "Version 55.0.2883.87". My selenium version is selenium-java-3.0.1....

    ReplyDelete