October 20, 2015

Handling Basic Authentication Using Webdriver

Here is post which explains you how to handle basic authentication.


Some of the applications that are secured with Basic Authentication. If you want to access those applications first you need to pass credentials. Those applications will launch a system level pop-up which cant not be handled by selenium.

IF you access below url it will ask for authentication.



By specifying userName and password in URL when accessing the page we can avoid system level dialog. This approach will work for HTTP and HTTPS pages.

Reference: http://elementalselenium.com/tips/13-work-with-basic-auth



  1. Thanks for sharing this information.It was very nice blog to learn about Selenium

  2. Thanks for sharing great information in your blog. Got to learn new things from your Blog . It was very nice blog to learn about Selenium

  3. Please tell me how to specify username and password in URL using selenium.

  4. it is very nice article and good post thanks for sharing this article to us
    i really like this article because i got good info about this article thanks for haring this article to us .best regards.
    sap hana online training

  5. Thanks for all the information, it was very helpful I really like that you are providing information. You inspire me to write for other. Thank you very much.
    Oracle Fusion HCM Technical Training

  6. Nice information about sap. i am looking SAP HANA Online Training with real time project.