Class: Selenium::WebDriver::Firefox::Driver Private

Inherits:
Driver
  • Object
show all
Includes:
LocalDriver
Defined in:
lib/selenium/webdriver/firefox/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 Firefox using GeckoDriver.

API:

  • private

Constant Summary collapse

EXTENSIONS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

API:

  • private

[DriverExtensions::HasAddons,
DriverExtensions::FullPageScreenshot,
DriverExtensions::HasContext,
DriverExtensions::HasBiDi,
DriverExtensions::HasLogEvents,
DriverExtensions::HasNetworkInterception,
DriverExtensions::PrintsPage].freeze

Constants included from SearchContext

SearchContext::FINDERS

Instance Method Summary collapse

Methods included from LocalDriver

#initialize_local_driver, #process_options, #service_url

Methods inherited from Driver

#[], #action, #add_virtual_authenticator, #capabilities, #close, #current_url, #execute_async_script, #execute_script, for, #get, #inspect, #manage, #navigate, #network, #page_source, #quit, #ref, #script, #status, #switch_to, #title, #window_handle, #window_handles

Methods included from TakesScreenshot

#save_screenshot, #screenshot_as

Methods included from SearchContext

#find_element, #find_elements, finders

Constructor Details

#initialize(options: nil, service: nil, url: nil) ⇒ 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.

API:

  • private



39
40
41
42
43
# File 'lib/selenium/webdriver/firefox/driver.rb', line 39

def initialize(options: nil, service: nil, url: nil, **)
  initialize_local_driver(options, service, url) do |caps, driver_url|
    super(caps: caps, url: driver_url, **)
  end
end

Instance Method Details

#browserObject

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.

API:

  • private



45
46
47
# File 'lib/selenium/webdriver/firefox/driver.rb', line 45

def browser
  :firefox
end