Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我从:http://code.google.com/p/chromedriver/downloads/list 安装了 exe 文件(chromedriver_win_23.0.1240.0.zip)
尝试使用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