打开 chrome 浏览器时,每次都会看到'terms of services'窗口



我安装了Exe File(Chromedriver_win_23.0.1240.0.zip),来自:http://code.google.com/p/p/chromedriver/chromedriver/downloads/list

尝试使用Alister Scott的示例设置配置文件

profile = Selenium::WebDriver::Chrome::Profile.new
profile['download.prompt_for_download'] = false
profile['download.default_directory'] = "/path/to/dir"
b = Watir::Browser.new :chrome, :profile => profile

最新更新