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 = "";   

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

Hope this tip is of some help.  


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

    1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Java developer learn from Java Training in Chennai. or learn thru Java Online Training in India . Nowadays Java has tons of job opportunities on various vertical industry.

      or Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry.

  2. Brijesh,

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

  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....