Module: Selenium::WebDriver::DriverExtensions::HasAddons

Defined in:
lib/selenium/webdriver/common/driver_extensions/has_addons.rb

Instance Method Summary collapse

Instance Method Details

#install_addon(path, temporary = nil) ⇒ String

Installs addon.

Parameters:

  • path (String)

    Full path to addon file

  • temporary (Boolean) (defaults to: nil)

Returns:

  • (String)

    identifier of installed addon


33
34
35
# File 'lib/selenium/webdriver/common/driver_extensions/has_addons.rb', line 33

def install_addon(path, temporary = nil)
  @bridge.install_addon(path, temporary)
end

#uninstall_addon(id) ⇒ Object

Uninstalls addon.

Parameters:

  • id (String)

    Identifier of installed addon


43
44
45
# File 'lib/selenium/webdriver/common/driver_extensions/has_addons.rb', line 43

def uninstall_addon(id)
  @bridge.uninstall_addon(id)
end