Method: Selenium::WebDriver::Firefox::Extension#initialize

Defined in:
lib/selenium/webdriver/firefox/extension.rb

#initialize(path) ⇒ Extension

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 Extension.


9
10
11
12
13
14
15
16
# File 'lib/selenium/webdriver/firefox/extension.rb', line 9

def initialize(path)
  unless File.exist?(path)
    raise Error::WebDriverError, "could not find extension at #{path.inspect}"
  end

  @path             = path
  @should_reap_root = false
end