Stupid question, I know. But, what am I missing here?
I am just getting back into Ruby after a few years away.
This code (*See attached JPEG) is just a snippet I’m hacking away at to
ensure watir is installed correctly and can be called.
Upon run, I am receiving the error: .
I am not sure why.
Any advice or push in the right direction would be greatly appreciated.
Thank you in advance,
Matty
require 'rubygems'
require 'watir'
require 'selenium-webdriver'
#start the browser up
def chrome
Watir::Browser.default = "chrome"
browser = watir::Browser.start "http://www.weather.com/"
browser.text_field(:id, "whatwhereForm2").set("san diego, ca")
browser.button(:src,"http://i.imwx.com/web/common/searchbutton.gif").click
browser.link(:text, "10-Day").click
end