Class: Selenium::WebDriver::BiDi::Protocol::WebExtension Private
- Defined in:
- lib/selenium/webdriver/bidi/protocol/web_extension.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Classes: ExtensionData
Constant Summary collapse
- InstallParameters =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( extension_data: {wire_key: 'extensionData', ref: 'WebExtension::ExtensionData'} )
- ExtensionPath =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( type: {fixed: 'path'}, path: {wire_key: 'path', primitive: 'string'} )
- ExtensionArchivePath =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( type: {fixed: 'archivePath'}, path: {wire_key: 'path', primitive: 'string'} )
- ExtensionBase64Encoded =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define( type: {fixed: 'base64'}, value: {wire_key: 'value', primitive: 'string'} )
- InstallResult =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define(extension: 'extension')
- UninstallParameters =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Serialization::Record.define(extension: 'extension')
Instance Method Summary collapse
- #install(extension_data:) ⇒ Object private
- #uninstall(extension:) ⇒ Object private
Methods inherited from Domain
Constructor Details
This class inherits a constructor from Selenium::WebDriver::BiDi::Protocol::Domain
Instance Method Details
#install(extension_data:) ⇒ 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.
78 79 80 81 |
# File 'lib/selenium/webdriver/bidi/protocol/web_extension.rb', line 78 def install(extension_data:) params = InstallParameters.new(extension_data: extension_data) execute(cmd: 'webExtension.install', params: params, result: WebExtension::InstallResult) end |
#uninstall(extension:) ⇒ 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.
85 86 87 88 |
# File 'lib/selenium/webdriver/bidi/protocol/web_extension.rb', line 85 def uninstall(extension:) params = UninstallParameters.new(extension: extension) execute(cmd: 'webExtension.uninstall', params: params) end |