123456789_123456789_123456789_123456789_123456789_

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

Relationships & Source Files
Defined in: rb/lib/selenium/webdriver/common/driver_extensions/has_addons.rb

Instance Method Summary

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

[ GitHub ]

  
# 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)

Uninstalls addon.

Parameters:

  • id (String)

    Identifier of installed addon

[ GitHub ]

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

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