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, Moz
Constant Summary collapse
- 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: {wire_key: 'extension', primitive: 'string'})
- 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: {wire_key: 'extension', primitive: 'string'})
- 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'}, extensible: true )
Instance Method Summary collapse
- #extension_archive_path ⇒ Object private
- #extension_base64_encoded ⇒ Object private
- #extension_data ⇒ Object private
- #extension_path ⇒ Object private
- #install(extension_data:) ⇒ Object private
- #moz ⇒ 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
#extension_archive_path ⇒ 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.
92 |
# File 'lib/selenium/webdriver/bidi/protocol/web_extension.rb', line 92 def extension_archive_path(**) = ExtensionArchivePath.new(**) |
#extension_base64_encoded ⇒ 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.
93 |
# File 'lib/selenium/webdriver/bidi/protocol/web_extension.rb', line 93 def extension_base64_encoded(**) = ExtensionBase64Encoded.new(**) |
#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.
90 |
# File 'lib/selenium/webdriver/bidi/protocol/web_extension.rb', line 90 def extension_data = ExtensionData |
#extension_path ⇒ 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.
91 |
# File 'lib/selenium/webdriver/bidi/protocol/web_extension.rb', line 91 def extension_path(**) = ExtensionPath.new(**) |
#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.
99 100 101 102 |
# File 'lib/selenium/webdriver/bidi/protocol/web_extension.rb', line 99 def install(extension_data:) params = InstallParameters.new(extension_data: extension_data) execute(cmd: 'webExtension.install', params: params, result: WebExtension::InstallResult) end |
#moz ⇒ 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.
94 |
# File 'lib/selenium/webdriver/bidi/protocol/web_extension.rb', line 94 def moz = Moz.new(connection) |
#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.
107 108 109 110 |
# File 'lib/selenium/webdriver/bidi/protocol/web_extension.rb', line 107 def uninstall(extension:) params = UninstallParameters.new(extension: extension) execute(cmd: 'webExtension.uninstall', params: params) end |