打开Chrome浏览器时,我每次都会收到“服务条款”窗口

时间:2012-11-06 14:09:43

标签: google-chrome watir-webdriver

我从以下网址安装了exe文件(chromedriver_win_23.0.1240.0.zip):http://code.google.com/p/chromedriver/downloads/list

1 个答案:

答案 0 :(得分:0)

尝试使用Alister Scott's example

设置个人资料
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