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.


  7. Good information It mayt be Helpful for me thanks a lot for sharing, Know how Development and operations will work in one platform
    Devops training
    Amazon web Services Training
    Salesforce Training online in India

  8. myTectra Placement Portal is a Web based portal brings Potentials Employers and myTectra Candidates on a common platform for placement assistance

  9. I would assume that we use more than the eyes to gauge a person's feelings. Mouth. Body language. Even voice. You could at least have given us a face in this test.
    python course in pune
    python course in chennai
    python course in Bangalore