Class: Selenium::WebDriver::BiDi::Protocol::Script Private
- Defined in:
- lib/selenium/webdriver/bidi/protocol/script.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: EvaluateResult, LocalValue, PrimitiveProtocolValue, RealmInfo, RemoteReference, RemoteValue, Target
Constant Summary collapse
- EVENTS =
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.
{ message: 'script.message', realm_created: 'script.realmCreated', realm_destroyed: 'script.realmDestroyed' }.freeze
- SPECIAL_NUMBER =
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.
{ na_n: 'NaN', neg0: '-0', infinity: 'Infinity', neg_infinity: '-Infinity' }.freeze
- REALM_TYPE =
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.
{ window: 'window', dedicated_worker: 'dedicated-worker', shared_worker: 'shared-worker', service_worker: 'service-worker', worker: 'worker', paint_worklet: 'paint-worklet', audio_worklet: 'audio-worklet', worklet: 'worklet' }.freeze
- RESULT_OWNERSHIP =
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.
{ root: 'root', none: 'none' }.freeze
- NODE_PROPERTIES_MODE =
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.
{ open: 'open', closed: 'closed' }.freeze
- SERIALIZATION_OPTIONS_INCLUDE_SHADOW_TREE =
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.
{ none: 'none', open: 'open', all: 'all' }.freeze
- ChannelValue =
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: 'channel'}, value: {wire_key: 'value', ref: 'Script::ChannelProperties'} )
- ChannelProperties =
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( channel: {wire_key: 'channel', primitive: 'string'}, serialization_options: { wire_key: 'serializationOptions', required: false, ref: 'Script::SerializationOptions' }, ownership: {wire_key: 'ownership', required: false, enum: 'Script::RESULT_OWNERSHIP'} )
- EvaluateResultSuccess =
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: 'success'}, result: {wire_key: 'result', ref: 'Script::RemoteValue'}, realm: {wire_key: 'realm', primitive: 'string'} )
- EvaluateResultException =
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: 'exception'}, exception_details: {wire_key: 'exceptionDetails', ref: 'Script::ExceptionDetails'}, realm: {wire_key: 'realm', primitive: 'string'} )
- ExceptionDetails =
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( column_number: {wire_key: 'columnNumber', primitive: 'integer'}, exception: {wire_key: 'exception', ref: 'Script::RemoteValue'}, line_number: {wire_key: 'lineNumber', primitive: 'integer'}, stack_trace: {wire_key: 'stackTrace', ref: 'Script::StackTrace'}, text: {wire_key: 'text', primitive: 'string'} )
- ArrayLocalValue =
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: 'array'}, value: {wire_key: 'value', ref: 'Script::LocalValue', list: true} )
- DateLocalValue =
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: 'date'}, value: {wire_key: 'value', primitive: 'string'} )
- MapLocalValue =
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: 'map'}, value: {wire_key: 'value', ref: 'Script::LocalValue', list: true, scalar: 'string'} )
- ObjectLocalValue =
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: 'object'}, value: {wire_key: 'value', ref: 'Script::LocalValue', list: true, scalar: 'string'} )
- RegExpValue =
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( pattern: {wire_key: 'pattern', primitive: 'string'}, flags: {wire_key: 'flags', required: false, primitive: 'string'} )
- RegExpLocalValue =
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: 'regexp'}, value: {wire_key: 'value', ref: 'Script::RegExpValue'} )
- SetLocalValue =
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: 'set'}, value: {wire_key: 'value', ref: 'Script::LocalValue', list: true} )
- UndefinedValue =
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: 'undefined'})
- NullValue =
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: 'null'})
- StringValue =
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: 'string'}, value: {wire_key: 'value', primitive: 'string'} )
- NumberValue =
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: 'number'}, value: 'value')
- BooleanValue =
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: 'boolean'}, value: {wire_key: 'value', primitive: 'boolean'} )
- BigIntValue =
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: 'bigint'}, value: {wire_key: 'value', primitive: 'string'} )
- BaseRealmInfo =
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( realm: {wire_key: 'realm', primitive: 'string'}, origin: {wire_key: 'origin', primitive: 'string'} )
- WindowRealmInfo =
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: 'window'}, realm: {wire_key: 'realm', primitive: 'string'}, origin: {wire_key: 'origin', primitive: 'string'}, context: {wire_key: 'context', primitive: 'string'}, user_context: {wire_key: 'userContext', required: false, primitive: 'string'}, sandbox: {wire_key: 'sandbox', required: false, primitive: 'string'} )
- DedicatedWorkerRealmInfo =
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: 'dedicated-worker'}, realm: {wire_key: 'realm', primitive: 'string'}, origin: {wire_key: 'origin', primitive: 'string'}, owners: {wire_key: 'owners', list: true} )
Serialization::Record.define( type: {fixed: 'shared-worker'}, realm: {wire_key: 'realm', primitive: 'string'}, origin: {wire_key: 'origin', primitive: 'string'} )
- ServiceWorkerRealmInfo =
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: 'service-worker'}, realm: {wire_key: 'realm', primitive: 'string'}, origin: {wire_key: 'origin', primitive: 'string'} )
- WorkerRealmInfo =
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: 'worker'}, realm: {wire_key: 'realm', primitive: 'string'}, origin: {wire_key: 'origin', primitive: 'string'} )
- PaintWorkletRealmInfo =
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: 'paint-worklet'}, realm: {wire_key: 'realm', primitive: 'string'}, origin: {wire_key: 'origin', primitive: 'string'} )
- AudioWorkletRealmInfo =
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: 'audio-worklet'}, realm: {wire_key: 'realm', primitive: 'string'}, origin: {wire_key: 'origin', primitive: 'string'} )
- WorkletRealmInfo =
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: 'worklet'}, realm: {wire_key: 'realm', primitive: 'string'}, origin: {wire_key: 'origin', primitive: 'string'} )
Serialization::Record.define( shared_id: {wire_key: 'sharedId', primitive: 'string'}, handle: {wire_key: 'handle', required: false, primitive: 'string'}, extensible: true )
- RemoteObjectReference =
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( handle: {wire_key: 'handle', primitive: 'string'}, shared_id: {wire_key: 'sharedId', required: false, primitive: 'string'}, extensible: true )
- SymbolRemoteValue =
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: 'symbol'}, handle: {wire_key: 'handle', required: false, primitive: 'string'}, internal_id: {wire_key: 'internalId', required: false, primitive: 'string'} )
- ArrayRemoteValue =
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: 'array'}, handle: {wire_key: 'handle', required: false, primitive: 'string'}, internal_id: {wire_key: 'internalId', required: false, primitive: 'string'}, value: {wire_key: 'value', required: false, ref: 'Script::RemoteValue', list: true} )
- ObjectRemoteValue =
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: 'object'}, handle: {wire_key: 'handle', required: false, primitive: 'string'}, internal_id: {wire_key: 'internalId', required: false, primitive: 'string'}, value: {wire_key: 'value', required: false, ref: 'Script::RemoteValue', list: true, scalar: 'string'} )
- FunctionRemoteValue =
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: 'function'}, handle: {wire_key: 'handle', required: false, primitive: 'string'}, internal_id: {wire_key: 'internalId', required: false, primitive: 'string'} )
- RegExpRemoteValue =
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: 'regexp'}, value: {wire_key: 'value', ref: 'Script::RegExpValue'}, handle: {wire_key: 'handle', required: false, primitive: 'string'}, internal_id: {wire_key: 'internalId', required: false, primitive: 'string'} )
- DateRemoteValue =
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: 'date'}, value: {wire_key: 'value', primitive: 'string'}, handle: {wire_key: 'handle', required: false, primitive: 'string'}, internal_id: {wire_key: 'internalId', required: false, primitive: 'string'} )
- MapRemoteValue =
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: 'map'}, handle: {wire_key: 'handle', required: false, primitive: 'string'}, internal_id: {wire_key: 'internalId', required: false, primitive: 'string'}, value: {wire_key: 'value', required: false, ref: 'Script::RemoteValue', list: true, scalar: 'string'} )
- SetRemoteValue =
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: 'set'}, handle: {wire_key: 'handle', required: false, primitive: 'string'}, internal_id: {wire_key: 'internalId', required: false, primitive: 'string'}, value: {wire_key: 'value', required: false, ref: 'Script::RemoteValue', list: true} )
- WeakMapRemoteValue =
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: 'weakmap'}, handle: {wire_key: 'handle', required: false, primitive: 'string'}, internal_id: {wire_key: 'internalId', required: false, primitive: 'string'} )
- WeakSetRemoteValue =
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: 'weakset'}, handle: {wire_key: 'handle', required: false, primitive: 'string'}, internal_id: {wire_key: 'internalId', required: false, primitive: 'string'} )
- GeneratorRemoteValue =
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: 'generator'}, handle: {wire_key: 'handle', required: false, primitive: 'string'}, internal_id: {wire_key: 'internalId', required: false, primitive: 'string'} )
- ErrorRemoteValue =
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: 'error'}, handle: {wire_key: 'handle', required: false, primitive: 'string'}, internal_id: {wire_key: 'internalId', required: false, primitive: 'string'} )
- ProxyRemoteValue =
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: 'proxy'}, handle: {wire_key: 'handle', required: false, primitive: 'string'}, internal_id: {wire_key: 'internalId', required: false, primitive: 'string'} )
- PromiseRemoteValue =
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: 'promise'}, handle: {wire_key: 'handle', required: false, primitive: 'string'}, internal_id: {wire_key: 'internalId', required: false, primitive: 'string'} )
- TypedArrayRemoteValue =
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: 'typedarray'}, handle: {wire_key: 'handle', required: false, primitive: 'string'}, internal_id: {wire_key: 'internalId', required: false, primitive: 'string'} )
- ArrayBufferRemoteValue =
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: 'arraybuffer'}, handle: {wire_key: 'handle', required: false, primitive: 'string'}, internal_id: {wire_key: 'internalId', required: false, primitive: 'string'} )
- NodeListRemoteValue =
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: 'nodelist'}, handle: {wire_key: 'handle', required: false, primitive: 'string'}, internal_id: {wire_key: 'internalId', required: false, primitive: 'string'}, value: {wire_key: 'value', required: false, ref: 'Script::RemoteValue', list: true} )
- HTMLCollectionRemoteValue =
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: 'htmlcollection'}, handle: {wire_key: 'handle', required: false, primitive: 'string'}, internal_id: {wire_key: 'internalId', required: false, primitive: 'string'}, value: {wire_key: 'value', required: false, ref: 'Script::RemoteValue', list: true} )
- NodeRemoteValue =
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: 'node'}, shared_id: {wire_key: 'sharedId', required: false, primitive: 'string'}, handle: {wire_key: 'handle', required: false, primitive: 'string'}, internal_id: {wire_key: 'internalId', required: false, primitive: 'string'}, value: {wire_key: 'value', required: false, ref: 'Script::NodeProperties'} )
- NodeProperties =
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( node_type: {wire_key: 'nodeType', primitive: 'integer'}, child_node_count: {wire_key: 'childNodeCount', primitive: 'integer'}, attributes: {wire_key: 'attributes', required: false}, children: {wire_key: 'children', required: false, ref: 'Script::NodeRemoteValue', list: true}, local_name: {wire_key: 'localName', required: false, primitive: 'string'}, mode: {wire_key: 'mode', required: false, enum: 'Script::NODE_PROPERTIES_MODE'}, namespace_uri: {wire_key: 'namespaceURI', required: false, primitive: 'string'}, node_value: {wire_key: 'nodeValue', required: false, primitive: 'string'}, shadow_root: {wire_key: 'shadowRoot', required: false, nullable: true, ref: 'Script::NodeRemoteValue'} )
- WindowProxyRemoteValue =
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: 'window'}, value: {wire_key: 'value', ref: 'Script::WindowProxyProperties'}, handle: {wire_key: 'handle', required: false, primitive: 'string'}, internal_id: {wire_key: 'internalId', required: false, primitive: 'string'} )
- WindowProxyProperties =
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(context: {wire_key: 'context', primitive: 'string'})
- SerializationOptions =
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( max_dom_depth: {wire_key: 'maxDomDepth', required: false, nullable: true, primitive: 'integer'}, max_object_depth: {wire_key: 'maxObjectDepth', required: false, nullable: true, primitive: 'integer'}, include_shadow_tree: { wire_key: 'includeShadowTree', required: false, enum: 'Script::SERIALIZATION_OPTIONS_INCLUDE_SHADOW_TREE' } )
- StackFrame =
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( column_number: {wire_key: 'columnNumber', primitive: 'integer'}, function_name: {wire_key: 'functionName', primitive: 'string'}, line_number: {wire_key: 'lineNumber', primitive: 'integer'}, url: {wire_key: 'url', primitive: 'string'} )
- StackTrace =
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( call_frames: {wire_key: 'callFrames', ref: 'Script::StackFrame', list: true} )
- Source =
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( realm: {wire_key: 'realm', primitive: 'string'}, context: {wire_key: 'context', required: false, primitive: 'string'}, user_context: {wire_key: 'userContext', required: false, primitive: 'string'} )
- RealmTarget =
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(realm: {wire_key: 'realm', primitive: 'string'})
- ContextTarget =
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( context: {wire_key: 'context', primitive: 'string'}, sandbox: {wire_key: 'sandbox', required: false, primitive: 'string'} )
- AddPreloadScriptParameters =
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( function_declaration: {wire_key: 'functionDeclaration', primitive: 'string'}, arguments: {wire_key: 'arguments', required: false, ref: 'Script::ChannelValue', list: true}, contexts: {wire_key: 'contexts', required: false, list: true}, user_contexts: {wire_key: 'userContexts', required: false, list: true}, sandbox: {wire_key: 'sandbox', required: false, primitive: 'string'} )
- AddPreloadScriptResult =
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(script: {wire_key: 'script', primitive: 'string'})
- DisownParameters =
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( handles: {wire_key: 'handles', list: true}, target: {wire_key: 'target', ref: 'Script::Target'} )
- CallFunctionParameters =
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( function_declaration: {wire_key: 'functionDeclaration', primitive: 'string'}, await_promise: {wire_key: 'awaitPromise', primitive: 'boolean'}, target: {wire_key: 'target', ref: 'Script::Target'}, arguments: {wire_key: 'arguments', required: false, ref: 'Script::LocalValue', list: true}, result_ownership: {wire_key: 'resultOwnership', required: false, enum: 'Script::RESULT_OWNERSHIP'}, serialization_options: { wire_key: 'serializationOptions', required: false, ref: 'Script::SerializationOptions' }, this: {wire_key: 'this', required: false, ref: 'Script::LocalValue'}, user_activation: {wire_key: 'userActivation', required: false, primitive: 'boolean'} )
- EvaluateParameters =
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( expression: {wire_key: 'expression', primitive: 'string'}, target: {wire_key: 'target', ref: 'Script::Target'}, await_promise: {wire_key: 'awaitPromise', primitive: 'boolean'}, result_ownership: {wire_key: 'resultOwnership', required: false, enum: 'Script::RESULT_OWNERSHIP'}, serialization_options: { wire_key: 'serializationOptions', required: false, ref: 'Script::SerializationOptions' }, user_activation: {wire_key: 'userActivation', required: false, primitive: 'boolean'} )
- GetRealmsParameters =
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( context: {wire_key: 'context', required: false, primitive: 'string'}, type: {wire_key: 'type', required: false, enum: 'Script::REALM_TYPE'} )
- GetRealmsResult =
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( realms: {wire_key: 'realms', ref: 'Script::RealmInfo', list: true} )
- RemovePreloadScriptParameters =
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( script: {wire_key: 'script', primitive: 'string'} )
- MessageParameters =
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( channel: {wire_key: 'channel', primitive: 'string'}, data: {wire_key: 'data', ref: 'Script::RemoteValue'}, source: {wire_key: 'source', ref: 'Script::Source'} )
- RealmDestroyedParameters =
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(realm: {wire_key: 'realm', primitive: 'string'})
- EVENT_TYPES =
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.
{ 'script.message' => Script::MessageParameters, 'script.realmCreated' => Script::RealmInfo, 'script.realmDestroyed' => Script::RealmDestroyedParameters }.freeze
Instance Method Summary collapse
- #add_preload_script(function_declaration:, arguments: Serialization::UNSET, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET, sandbox: Serialization::UNSET) ⇒ Object private
- #array_local_value ⇒ Object private
- #big_int_value ⇒ Object private
- #boolean_value ⇒ Object private
- #call_function(function_declaration:, await_promise:, target:, arguments: Serialization::UNSET, result_ownership: Serialization::UNSET, serialization_options: Serialization::UNSET, this: Serialization::UNSET, user_activation: Serialization::UNSET) ⇒ Object private
- #channel_properties ⇒ Object private
- #channel_value ⇒ Object private
- #context_target ⇒ Object private
- #date_local_value ⇒ Object private
- #disown(handles:, target:) ⇒ Object private
- #evaluate(expression:, target:, await_promise:, result_ownership: Serialization::UNSET, serialization_options: Serialization::UNSET, user_activation: Serialization::UNSET) ⇒ Object private
- #get_realms(context: Serialization::UNSET, type: Serialization::UNSET) ⇒ Object private
- #local_value ⇒ Object private
- #map_local_value ⇒ Object private
- #null_value ⇒ Object private
- #number_value ⇒ Object private
- #object_local_value ⇒ Object private
- #primitive_protocol_value ⇒ Object private
- #realm_target ⇒ Object private
- #reg_exp_local_value ⇒ Object private
- #reg_exp_value ⇒ Object private
- #remote_object_reference ⇒ Object private
- #remote_reference ⇒ Object private
- #remove_preload_script(script:) ⇒ Object private
- #serialization_options ⇒ Object private
- #set_local_value ⇒ Object private
- #shared_reference ⇒ Object private
- #string_value ⇒ Object private
- #target ⇒ Object private
- #undefined_value ⇒ Object private
Methods inherited from Domain
Constructor Details
This class inherits a constructor from Selenium::WebDriver::BiDi::Protocol::Domain
Instance Method Details
#add_preload_script(function_declaration:, arguments: Serialization::UNSET, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET, sandbox: Serialization::UNSET) ⇒ 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.
957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 957 def add_preload_script( function_declaration:, arguments: Serialization::UNSET, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET, sandbox: Serialization::UNSET ) params = AddPreloadScriptParameters.new( function_declaration: function_declaration, arguments: arguments, contexts: contexts, user_contexts: user_contexts, sandbox: sandbox ) execute(cmd: 'script.addPreloadScript', params: params, result: Script::AddPreloadScriptResult) end |
#array_local_value ⇒ 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.
932 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 932 def array_local_value(**) = ArrayLocalValue.new(**) |
#big_int_value ⇒ 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.
945 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 945 def big_int_value(**) = BigIntValue.new(**) |
#boolean_value ⇒ 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.
944 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 944 def boolean_value(**) = BooleanValue.new(**) |
#call_function(function_declaration:, await_promise:, target:, arguments: Serialization::UNSET, result_ownership: Serialization::UNSET, serialization_options: Serialization::UNSET, this: Serialization::UNSET, user_activation: Serialization::UNSET) ⇒ 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.
977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 977 def call_function( function_declaration:, await_promise:, target:, arguments: Serialization::UNSET, result_ownership: Serialization::UNSET, serialization_options: Serialization::UNSET, this: Serialization::UNSET, user_activation: Serialization::UNSET ) Serialization.validate!('resultOwnership', result_ownership, Script::RESULT_OWNERSHIP) params = CallFunctionParameters.new( function_declaration: function_declaration, await_promise: await_promise, target: target, arguments: arguments, result_ownership: result_ownership, serialization_options: , this: this, user_activation: user_activation ) execute(cmd: 'script.callFunction', params: params, result: Script::EvaluateResult) end |
#channel_properties ⇒ 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.
930 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 930 def channel_properties(**) = ChannelProperties.new(**) |
#channel_value ⇒ 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.
929 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 929 def channel_value(**) = ChannelValue.new(**) |
#context_target ⇒ 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.
951 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 951 def context_target(**) = ContextTarget.new(**) |
#date_local_value ⇒ 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.
933 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 933 def date_local_value(**) = DateLocalValue.new(**) |
#disown(handles:, target:) ⇒ 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.
1004 1005 1006 1007 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 1004 def disown(handles:, target:) params = DisownParameters.new(handles: handles, target: target) execute(cmd: 'script.disown', params: params) end |
#evaluate(expression:, target:, await_promise:, result_ownership: Serialization::UNSET, serialization_options: Serialization::UNSET, user_activation: Serialization::UNSET) ⇒ 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.
1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 1012 def evaluate( expression:, target:, await_promise:, result_ownership: Serialization::UNSET, serialization_options: Serialization::UNSET, user_activation: Serialization::UNSET ) Serialization.validate!('resultOwnership', result_ownership, Script::RESULT_OWNERSHIP) params = EvaluateParameters.new( expression: expression, target: target, await_promise: await_promise, result_ownership: result_ownership, serialization_options: , user_activation: user_activation ) execute(cmd: 'script.evaluate', params: params, result: Script::EvaluateResult) end |
#get_realms(context: Serialization::UNSET, type: Serialization::UNSET) ⇒ 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.
1035 1036 1037 1038 1039 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 1035 def get_realms(context: Serialization::UNSET, type: Serialization::UNSET) Serialization.validate!('type', type, Script::REALM_TYPE) params = GetRealmsParameters.new(context: context, type: type) execute(cmd: 'script.getRealms', params: params, result: Script::GetRealmsResult) end |
#local_value ⇒ 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.
931 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 931 def local_value = LocalValue |
#map_local_value ⇒ 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.
934 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 934 def map_local_value(**) = MapLocalValue.new(**) |
#null_value ⇒ 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.
941 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 941 def null_value(**) = NullValue.new(**) |
#number_value ⇒ 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.
943 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 943 def number_value(**) = NumberValue.new(**) |
#object_local_value ⇒ 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.
935 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 935 def object_local_value(**) = ObjectLocalValue.new(**) |
#primitive_protocol_value ⇒ 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.
939 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 939 def primitive_protocol_value = PrimitiveProtocolValue |
#realm_target ⇒ 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.
950 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 950 def realm_target(**) = RealmTarget.new(**) |
#reg_exp_local_value ⇒ 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.
937 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 937 def reg_exp_local_value(**) = RegExpLocalValue.new(**) |
#reg_exp_value ⇒ 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.
936 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 936 def reg_exp_value(**) = RegExpValue.new(**) |
#remote_object_reference ⇒ 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.
948 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 948 def remote_object_reference(**) = RemoteObjectReference.new(**) |
#remote_reference ⇒ 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.
946 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 946 def remote_reference = RemoteReference |
#remove_preload_script(script:) ⇒ 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.
1044 1045 1046 1047 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 1044 def remove_preload_script(script:) params = RemovePreloadScriptParameters.new(script: script) execute(cmd: 'script.removePreloadScript', params: params) end |
#serialization_options ⇒ 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.
949 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 949 def (**) = SerializationOptions.new(**) |
#set_local_value ⇒ 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.
938 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 938 def set_local_value(**) = SetLocalValue.new(**) |
#shared_reference ⇒ 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.
947 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 947 def shared_reference(**) = SharedReference.new(**) |
#string_value ⇒ 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.
942 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 942 def string_value(**) = StringValue.new(**) |
#target ⇒ 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.
952 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 952 def target = Target |
#undefined_value ⇒ 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.
940 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 940 def undefined_value(**) = UndefinedValue.new(**) |