October 20, 2015

Handling Basic Authentication Using Webdriver

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

Problem:

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.

http://the-internet.herokuapp.com/basic_auth



Solution:

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

Example:

11 comments:

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

    ReplyDelete
  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

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

    ReplyDelete
  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

    ReplyDelete
  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

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

    ReplyDelete

  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

    ReplyDelete