Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I have 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

br.get('https://user:pass@URL')

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 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 at 12:02

1 Answer 1

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.

Options:

  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. http://www.sikuli.org/

share|improve this answer

Your Answer

 
discard

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.