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:

20 comments:

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

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

    ReplyDelete
  3. 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
  4. 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

  5. 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
  6. Have you been thinking about the power sources and the tiles whom use blocks I wanted to thank you for this great read!! I definitely enjoyed every little bit of it and I have you bookmarked to check out the new stuff you post
    rpa training in bangalore
    best rpa training in bangalore
    rpa training in pune

    ReplyDelete
  7. I found your blog while searching for the updates, I am happy to be here. Very useful content and also easily understandable providing.. Believe me I did wrote an post about tutorials for beginners with reference of your blog. 
    rpa training in bangalore
    rpa training in pune
    rpa online training
    best rpa training in bangalore

    ReplyDelete
  8. This is an awesome post.Really very informative and creative contents. These concept is a good way to enhance the knowledge.
    I like it and help me to development very well.Thank you for this brief explanation and very nice information.Well, got a good knowledge.
    Java training in Chennai
    Java training in Bangalore
    Java online training
    Java training in Pune

    ReplyDelete
  9. I appreciate that you produced this wonderful article to help us get more knowledge about this topic.
    I know, it is not an easy task to write such a big article in one day, I've tried that and I've failed. But, here you are, trying the big task and finishing it off and getting good comments and ratings. That is one hell of a job done!

    Selenium training in bangalore
    Selenium training in Chennai
    Selenium training in Bangalore
    Selenium training in Pune
    Selenium Online training
    Selenium interview questions and answers

    ReplyDelete
  10. Attend The Python Training in Bangalore From ExcelR. Practical Python Training in Bangalore Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Python Training in Bangalore.
    Python Training in Bangalore

    ReplyDelete
  11. This is also a very good post which I really enjoyed reading. It is not every day that I have the possibility Python classes in pune to see something like this..

    ReplyDelete

  12. Thanks for sharing such an amazing information,its very useful for the readers.Keep sharing more,if you are interested in knowing more about data science please visit our site.
    Best Data Science Certification Course in Bangalore

    ReplyDelete

  13. This was not just great in fact this was really perfect your talent in writing was great. ExcelR Machine Learning Course Pune

    ReplyDelete
  14. This post is so interactive and informative.keep update more information...
    RPA Training in Tambaram
    RPA Training in Chennai

    ReplyDelete
  15. This post is so interactive and informative.keep update more information…
    SEO Training in Anna Nagar
    SEO Training in Chennai

    ReplyDelete