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

Defined in:
rb/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



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

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



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

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