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

Included in:
Firefox::Marionette::Driver
Defined in:
lib/selenium/webdriver/common/driver_extensions/has_addons.rb

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

Instance Method Summary collapse

Instance Method Details

#install_addon(path, temporary = nil) ⇒ String

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.

Installs addon.

Parameters:

  • path (String)

    Full path to addon file

  • temporary (Boolean) (defaults to: nil)

Returns:

  • (String)

    identifier of installed addon



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

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

#uninstall_addon(id) ⇒ Object

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.

Uninstalls addon.

Parameters:

  • id (String)

    Identifier of installed addon



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

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