Webdriver Watir Ruby Chrome 版本
Webdriver Watir Ruby Chrome Versions
我想用不同版本的 Chrome 进行测试。您如何使用 Watir 和 Ruby 指向特定的 Chrome executable/version?
要使用特定的 Chrome 可执行文件,请指定 Selenium::WebDriver::Chrome.path
。
require 'watir'
# Note that the path includes the file directory and executable
Selenium::WebDriver::Chrome.path = 'C:/Program Files (x86)/Google/Chrome/Application/Chrome.exe'
browser = Watir::Browser.new :chrome
我想用不同版本的 Chrome 进行测试。您如何使用 Watir 和 Ruby 指向特定的 Chrome executable/version?
要使用特定的 Chrome 可执行文件,请指定 Selenium::WebDriver::Chrome.path
。
require 'watir'
# Note that the path includes the file directory and executable
Selenium::WebDriver::Chrome.path = 'C:/Program Files (x86)/Google/Chrome/Application/Chrome.exe'
browser = Watir::Browser.new :chrome