How to handle widows authentication dialog using webdriver in python
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.
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.
- Write custom code to do this outside of selenium and then put it in the middle of your test
- 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/