require 'rubygems'
require 'watir-webdriver'
require 'rspec'
Selenium::WebDriver::Chrome.driver_path = "C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"
browser = Watir::Browser.new :chrome
URL = ''
Given (/^网址是 "([^"]*)"$/) do |aurl|
URL = aurl
end
When("打开URL") do
puts "网址:" + URL
browser.goto URL
end