title: How to use capybara visit without session prefix. getting undefined method `visit' for main:Object (NoMethodError)
body: <p>Writing a standalone piece of code I can use </p>
  
  <pre><code>session.visit('/forms')
  </code></pre>
  
  <p>but how could I use </p>
  
  <pre><code>visit('/forms')
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>require 'webdrivers'
  require 'rspec'
  require 'capybara'
  require 'capybara/rspec'
  Capybara.configure do |config|
    config.run_server = false
    config.default_driver = :chrome
    config.app_host = 'https://google.com'
  end
  options = Selenium::WebDriver::Chrome::Options.new(args: ['window-size=1200,1200'])
  Capybara.register_driver :chrome do |app|
    Capybara::Selenium::Driver.new(app, browser: :chrome, options: options)
  end
  
  session = Capybara::Session.new(:chrome)
  session.visit('/forms') # &lt;-- this works :)
  visit('/forms')         # &lt;-- but this doesn't :(
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>undefined method `visit' for main:Object (NoMethodError)
  </code></pre>