2017-07-19 46 views
0

可以请一些人帮助我处理窗口身份验证使用硒和C#在不使用AutoIT的情况下在Chrome中弹出?处理验证需要弹出

窗口验证弹出了

Window Authentication Pop up

附: - 使用用户名和密码嵌入网址(http://username:[email protected]/)在我的代码中不起作用。不知何故CSS不会加载。

+0

[如何使用Java处理Selenium WebDriver验证弹出窗口](https://stackoverflow.com/questions/24304752/how-to-handle-authentication-popup-with-selenium-webdriver-using-java ) –

回答

0

而不是driver.get("http://10.127.127.76:6162");driver.get("http://username:[email protected]:6162");

与给定解决您的凭证更换用户名和密码。

希望它能帮助你。

+0

看来,这不再适用于最新版本的Chrome。不确定关于FF或IE。 – Acludia