Class: Rspeckled::Selenium::Drivers::Firefox
- Inherits:
-
Object
- Object
- Rspeckled::Selenium::Drivers::Firefox
- Defined in:
- lib/rspeckled/plugins/extensions/selenium/drivers/firefox.rb
Instance Attribute Summary collapse
-
#downloads_directory ⇒ Object
readonly
Returns the value of attribute downloads_directory.
Instance Method Summary collapse
- #driver(app) ⇒ Object
- #headless(app) ⇒ Object
-
#initialize(options) ⇒ Firefox
constructor
A new instance of Firefox.
Constructor Details
#initialize(options) ⇒ Firefox
Returns a new instance of Firefox.
9 10 11 |
# File 'lib/rspeckled/plugins/extensions/selenium/drivers/firefox.rb', line 9 def initialize() self.downloads_directory = .fetch(:downloads_directory) end |
Instance Attribute Details
#downloads_directory ⇒ Object
Returns the value of attribute downloads_directory.
7 8 9 |
# File 'lib/rspeckled/plugins/extensions/selenium/drivers/firefox.rb', line 7 def downloads_directory @downloads_directory end |
Instance Method Details
#driver(app) ⇒ Object
13 14 15 |
# File 'lib/rspeckled/plugins/extensions/selenium/drivers/firefox.rb', line 13 def driver(app) ::Capybara::Selenium::Driver.new(app, :browser => :firefox, :profile => profile, :options => ) end |
#headless(app) ⇒ Object
17 18 19 |
# File 'lib/rspeckled/plugins/extensions/selenium/drivers/firefox.rb', line 17 def headless(app) ::Capybara::Selenium::Driver.new(app, :browser => :firefox, :profile => profile, :options => ) end |