Does Watir-webdriver use the goto method? Because the URL seems to open to the data;


I'm new to to test automation and I'm having an issue getting started. I am using ruby 1.9.3, watir-webdriver 0.9.3, chromedirver 2.24, yosemite osx and sublime 2 / terminal to execute. I am trying to get the method 'goto' to take me to, but i get this error.

rb:5:in `<main>': undefined method `goto' for nil:NilClass (NoMethodError)

this is my code

require 'rubygems'
require 'watir-webdriver'

@Browser = :chrome #You can also use firefox

I have tried firefox and it will open to a new tab. I also tried using chrome and the browser open with "data;" in the url. I can't seem to find an answer on SO or Online. Thanks in advance for any assistance.

data; is a default string that is set in the url when the browser starts. Seems that goto method is not found. You might have a config issue.

One possible issue might be that you used @Browserc instead of @Browser when you called goto.