Class: Selenium::WebDriver::Remote::Driver Private
- Includes:
- DriverExtensions::HasRemoteStatus, DriverExtensions::HasSessionId, DriverExtensions::HasWebStorage, DriverExtensions::Rotatable, DriverExtensions::TakesScreenshot, DriverExtensions::UploadsFiles
- Defined in:
- lib/selenium/webdriver/remote/driver.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Driver implementation for remote server.
Constant Summary
Constants included from DriverExtensions::Rotatable
DriverExtensions::Rotatable::ORIENTATIONS
Constants included from SearchContext
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Driver
constructor
private
A new instance of Driver.
Methods included from DriverExtensions::HasWebStorage
#local_storage, #session_storage
Methods included from DriverExtensions::HasRemoteStatus
Methods included from DriverExtensions::Rotatable
Methods included from DriverExtensions::HasSessionId
Methods included from DriverExtensions::TakesScreenshot
#save_screenshot, #screenshot_as
Methods included from DriverExtensions::UploadsFiles
Methods inherited from Driver
#[], #action, #browser, #capabilities, #close, #current_url, #execute_async_script, #execute_script, for, #get, #inspect, #keyboard, #manage, #mouse, #navigate, #page_source, #quit, #ref, #switch_to, #title, #window_handle, #window_handles
Methods included from SearchContext
Constructor Details
#initialize(opts = {}) ⇒ Driver
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Driver.
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/selenium/webdriver/remote/driver.rb', line 35 def initialize(opts = {}) listener = opts.delete(:listener) @bridge = Bridge.handshake(opts) if @bridge.dialect == :oss extend DriverExtensions::HasTouchScreen extend DriverExtensions::HasLocation extend DriverExtensions::HasNetworkConnection end super(@bridge, listener: listener) end |