Like us on Facebook

LightBlog

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:

30 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
  8. myTectra Placement Portal is a Web based portal brings Potentials Employers and myTectra Candidates on a common platform for placement assistance

    ReplyDelete
  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

    ReplyDelete
  10. Hello! This is my first visit to your blog! We are a team of volunteers and starting a new initiative in a community in the same niche. Your blog provided us useful information to work on. You have done an outstanding job.


    Best AWS Training in Marathahalli | AWS Training in Bangalore
    Best AWS Amazon Web Services Training in Chennai | AWS Training for Solution Architect in Chennai

    ReplyDelete
  11. 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
  12. 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
  13. 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
  14. 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
  15. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
    microsoft azure training in bangalore
    rpa training in bangalore
    best rpa training in bangalore
    rpa online training

    ReplyDelete



  16. this was an exceptionally nice post. Taking a few minutes and actual effort to generate a really good article

    شركة نقل عفش
    شركة نقل اثاث بالرياض رخيصة

    ReplyDelete


  17. نعمل دائما على توفر خدمات نقل عفش متميزة لاننا افضلشركة نقل عفش بالدمام رخيصةتعمل فى الدمام والاحساء ويمكنك دوما الاستعانة بنا لاننا نوفر افضل سيارات
    نقل عفش بالدمامفقط اتصل بنا بالاضافة الى خدماتنا مثل :

    شركة نقل عفش من جدة الى الدمام شركة نقل عفش من جدة الى الدمام
    شركة نقل عفش بالمدينة المنورة


    شراء الاثاث المستعمل بالرياض

    شركة شراء اثاث مستعمل بالدمام شركة شراء الاثاث المستعمل بالدمام

    ReplyDelete
  18. 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
  19. 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