Class: Capybara::Mechanize::Driver
- Inherits:
-
RackTest::Driver
- Object
- RackTest::Driver
- Capybara::Mechanize::Driver
- Defined in:
- lib/capybara/mechanize/driver.rb
Instance Method Summary collapse
- #browser ⇒ Object
-
#initialize(app = nil, options = {}) ⇒ Driver
constructor
A new instance of Driver.
- #remote?(url) ⇒ Boolean
Constructor Details
#initialize(app = nil, options = {}) ⇒ Driver
Returns a new instance of Driver.
5 6 7 8 9 10 11 |
# File 'lib/capybara/mechanize/driver.rb', line 5 def initialize(app = nil, = {}) if !app && !Capybara.app_host raise ArgumentError, "You have to set at least Capybara.app_host or Capybara.app" end @app, @options = app, end |