我需要在私人模式下启动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