Skip to content

Instantly share code, notes, and snippets.

Created June 2, 2015 15:03
Show Gist options
  • Save anonymous/4f95172085c9726fa742 to your computer and use it in GitHub Desktop.
Save anonymous/4f95172085c9726fa742 to your computer and use it in GitHub Desktop.
def setup
self.banner
url = ARGV.shift
url = self.validate_instance(url)
@driver ||= Selenium::WebDriver.for(:remote, :url => url)
end
def teardown
@driver.quit
end
Error:
InstanceTest#test_login:
NoMethodError: undefined method `quit' for nil:NilClass
ruby_instance.rb:36:in `teardown'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment