我从以下网址安装了exe文件(chromedriver_win_23.0.1240.0.zip):http://code.google.com/p/chromedriver/downloads/list
答案 0 :(得分:0)
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