Class: Selenium::WebDriver::WebExtension

Inherits:
Object
  • Object
show all
Defined in:
rb/lib/selenium/webdriver/common/web_extension.rb

Overview

A browser extension installed via Driver#install_web_extension. Wraps the identifier the browser assigned; pass it to Driver#uninstall_web_extension.

Direct Known Subclasses

BiDi::Protocol::WebExtension::Moz

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ WebExtension

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



37
38
39
# File 'rb/lib/selenium/webdriver/common/web_extension.rb', line 37

def initialize(id)
  @id = id
end

Instance Attribute Details

#id ⇒ String (readonly)

Returns identifier assigned to the extension by the browser.

Returns:

  • (String) —

    identifier assigned to the extension by the browser



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

def id
  @id
end