简体   繁体   中英

Can we handle OS pop-up using “gem sikuli” in selenium script

在此处输入图片说明

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.

This is what I use in C#

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM