我正在尝试以私有模式运行IE 11, 浏览器实例以正常模式启动IE
我在注册表中的键TabProcGrowth REG_DWORD在所需的路径中具有值0。./Internet Explorer / Main /
Conf:
节点-v 10.7.0 量角器5.3.2 IE 11 Windows 10
功能:{ browserName:“互联网浏览器”, “ ie.forceCreateProcessApi”:是的, “ ie.browserCommandLineSwitches”:“ -private”, “ ie.ensureCleanSession”:是的, }
答案 0 :(得分:0)
您尝试过
setCapability(InternetExplorerDriver.IE_SWITCHES, "-private");
或者您可以尝试
Keys.chord(Keys.CONTROL, Keys.SHIFT, "p");