如何使用Ruby和Watir启动IE inPrivate浏览

时间:2017-11-08 11:02:58

标签: ruby selenium internet-explorer watir

我需要在私人模式下启动Watir IE浏览器。 Chrome的icognito模式可以通过以下方式轻松启动:

    @browser = Watir::Browser.new :chrome, switches: ['--incognito']

我在IE中试过这个,但它不起作用

    @browser = Watir::Browser.new :ie, switches: ['-private']

我在这里尝试了一些适应症,但没有成功 https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver

ie.forceCreateProcessApi with true value and ie.browserCommandLineSwitches with -private

0 个答案:

没有答案