Class: Selenium::WebDriver::WebExtension
- Inherits:
-
Object
- Object
- Selenium::WebDriver::WebExtension
- 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
Instance Attribute Summary collapse
-
#id ⇒ String
readonly
Identifier assigned to the extension by the browser.
Instance Method Summary collapse
-
#initialize(id) ⇒ WebExtension
constructor
private
A new instance of WebExtension.
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.
31 32 33 |
# File 'rb/lib/selenium/webdriver/common/web_extension.rb', line 31 def id @id end |