Protractor 量角器支持Windows身份验证弹出窗口?

Protractor 量角器支持Windows身份验证弹出窗口?,protractor,Protractor,有没有一种方法可以让Gragrator支持IE和Chrome的windows身份验证弹出窗口,这对我的应用程序“不起作用”,有没有其他方法可以处理windows弹出窗口。Chrome支持直接在URL中嵌入凭据,并且可以像“”一样正常工作 但是,IE不支持将其作为安全问题,因此您可能需要编写一个shell脚本,如下所示: set WshShell = WScript.CreateObject("WScript.Shell") WshShell.AppActivate "Windows Securi

有没有一种方法可以让Gragrator支持IE和Chrome的windows身份验证弹出窗口,这对我的应用程序“不起作用”,有没有其他方法可以处理windows弹出窗口。

Chrome支持直接在URL中嵌入凭据,并且可以像“”一样正常工作

但是,IE不支持将其作为安全问题,因此您可能需要编写一个shell脚本,如下所示:

set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.AppActivate "Windows Security"
WshShell.Sleep 500
WshShell.SendKeys "Username"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "password"
WshShell.SendKeys "{ENTER}"