我希望能够打开一个处于隐私浏览模式的Watir :: Browser.new.
谢谢
profile = Selenium::WebDriver::Firefox::Profile.new profile['browser.privatebrowsing.dont_prompt_on_enter'] = true profile['browser.privatebrowsing.autostart'] = true b = Watir::Browser.new :firefox,:profile => profile
这是@L_403_0@的解决方案.它似乎工作(至少主菜单说它是私人浏览).