-1

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

4

1 回答 1

0

尝试使用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
于 2012-11-07T20:37:18.503 回答