Is there any way to provide username and password to a basic auth dialog in IE using Selenium Webdriver? Passing the credentials in the URL is not an option for us.
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- Selecting an item from a combo box selenium driver
- Is TWebBrowser dependant on IE version?
- Selenium in Java is not finding element when using
- How to send text to the search field through Selen
Actually, if you are in Windows and using other than Java for writing the automation, AutoItX3 is a very good option.
You need to have registered AutoItX3.dll to Windows:
And instantiate it somewhere in your code:
Here is Ruby/Watir-webdriver sample basic auth method:
Here are supporting methods: This one currently only knows Chrome for Win XP and Win 7
Of course this is Windows specific:
I got a solution for this epic problem
Use awt!!
Open the URL and use the java Robot class or the SmartRobot class given below:
and use this class something like....
The solution works like a charm, without needing any 3rd party tools like AutoIt or Sikuli.
Did you try the good old passing username and password in URL?
It does work for me in Firefox and Chrome. I did not test the IE, because I am on linux