Class: Rspeckled::Selenium::Drivers::Chrome
- Inherits:
-
Object
- Object
- Rspeckled::Selenium::Drivers::Chrome
- Defined in:
- lib/rspeckled/plugins/extensions/selenium/drivers/chrome.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) ⇒ Chrome
constructor
A new instance of Chrome.
Constructor Details
#initialize(options) ⇒ Chrome
Returns a new instance of Chrome.
9 10 11 |
# File 'lib/rspeckled/plugins/extensions/selenium/drivers/chrome.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/chrome.rb', line 7 def downloads_directory @downloads_directory end |
Instance Method Details
#driver(app) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/rspeckled/plugins/extensions/selenium/drivers/chrome.rb', line 13 def driver(app) ::::Selenium::Driver.new( app, :browser => :chrome, :desired_capabilities => ::Selenium::WebDriver::Remote::Capabilities.chrome() ) end |
#headless(app) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/rspeckled/plugins/extensions/selenium/drivers/chrome.rb', line 21 def headless(app) ::::Selenium::Driver.new( app, :browser => :chrome, :desired_capabilities => ::Selenium::WebDriver::Remote::Capabilities.chrome() ) end |