是哪种浏览器呢

你可能会想在代码里控制使用哪种浏览器进行测试,这是很简单的:

require 'watir-webdriver'
b = Watir::Browser.new :chrome
browser.driver.browser #=> :chrome

Published: July 06 2013

blog comments powered by Disqus