When I hit url in browser it gives windows authentication pop-up and we need to enter proper username and password into that then only it will give home page of that site.
It is not able to handle windows pop-up using Selenium-WebDriver
I was trying to handle that pop-up using gem sikuli code inside selenium script but it is giving error as
Timeout::Error: execution expired
OS pop ups cannot be handled using Selenium Web Driver , however there are numerous other frameworks that can handle it. This is for a upload window , thus should work for your scenario too.
driver.get(" http://LOGIN:PASSWORD@localhost:8080/myApp/ ")
LOGIN> -> username which you need pass for authentication
PASSWORD> -> password which you need pass for authentication
After @ put your URL.
Don't forget to put / at the end of the URL, At-least for firefox.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.