Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an application which is secured by http authentication. So when I open the URL it is looking for user/pass in windows authentication dialog. I wanted handle this dialog to enter user/pass and click OK button to proceed further on web browser.

I tried with WebDriver by passing


but it did not work. Any solution is much appreciated.

share|improve this question
Is there a non-browser popup that you have to provide your credentials into before navigating or is this a browser popup or is this just done behind the scenes based on your windows credentials? Please provide the exact steps and preferably html/selenium code in the steps. – mutt Aug 18 '14 at 11:48
it is windows authentication dialog (this is non browser) like when we click save button and see dialog. steps are ... open browser, input url and enter, now popup would come to enter user/pass. Please let me know if more details needed. – Bimlesh Sharma Aug 18 '14 at 12:02
up vote 1 down vote accepted

Selenium is not able to interact directly with OS functionality. So unless there is some backend service that allows you to create the connection through the browser somehow you can't use Selenium for this.


  1. Write custom code to do this outside of selenium and then put it in the middle of your test
  2. Utilize another testing tool at least for the login and then go back to Selenium.

Sikuli is a good tool for this type of thing. You can execute your sikuli test command line via code and then roll into your test after login is successful.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.