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: EvaluationResult, 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'} )
- EvaluationResultSuccess =
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'} )
- EvaluationResultException =
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', min: 0, max: 9_007_199_254_740_991}, exception: {wire_key: 'exception', ref: 'Script::RemoteValue'}, line_number: {wire_key: 'lineNumber', primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, 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, primitive: 'string'} )
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', min: 0, max: 9_007_199_254_740_991}, child_node_count: {wire_key: 'childNodeCount', primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, attributes: {wire_key: 'attributes', required: false, map: 'string'}, 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', min: 0, max: 9_007_199_254_740_991 }, max_object_depth: { wire_key: 'maxObjectDepth', required: false, nullable: true, primitive: 'integer', min: 0, max: 9_007_199_254_740_991 }, 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', min: 0, max: 9_007_199_254_740_991}, function_name: {wire_key: 'functionName', primitive: 'string'}, line_number: {wire_key: 'lineNumber', primitive: 'integer', min: 0, max: 9_007_199_254_740_991}, 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, primitive: 'string'}, user_contexts: {wire_key: 'userContexts', required: false, list: true, primitive: 'string'}, 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, primitive: 'string'}, 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_message_listener(&block) ⇒ Object private
- #add_preload_script(function_declaration:, arguments: Serialization::UNSET, contexts: Serialization::UNSET, user_contexts: Serialization::UNSET, sandbox: Serialization::UNSET) ⇒ Object private
- #add_realm_created_listener(&block) ⇒ Object private
- #add_realm_destroyed_listener(&block) ⇒ 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_message_listener(&block) ⇒ 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.
1066 1067 1068 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 1066 def (&block) add_listener('script.message', &block) end |
#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.
971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 971 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 |
#add_realm_created_listener(&block) ⇒ 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.
1073 1074 1075 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 1073 def add_realm_created_listener(&block) add_listener('script.realmCreated', &block) end |
#add_realm_destroyed_listener(&block) ⇒ 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.
1080 1081 1082 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 1080 def add_realm_destroyed_listener(&block) add_listener('script.realmDestroyed', &block) 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.
946 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 946 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.
959 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 959 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.
958 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 958 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.
991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 991 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::EvaluationResult) 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.
944 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 944 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.
943 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 943 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.
965 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 965 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.
947 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 947 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.
1018 1019 1020 1021 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 1018 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.
1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 1026 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::EvaluationResult) 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.
1049 1050 1051 1052 1053 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 1049 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.
945 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 945 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.
948 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 948 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.
955 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 955 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.
957 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 957 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.
949 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 949 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.
953 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 953 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.
964 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 964 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.
951 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 951 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.
950 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 950 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.
962 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 962 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.
960 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 960 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.
1058 1059 1060 1061 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 1058 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.
963 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 963 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.
952 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 952 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.
961 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 961 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.
956 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 956 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.
966 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 966 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.
954 |
# File 'lib/selenium/webdriver/bidi/protocol/script.rb', line 954 def undefined_value(**) = UndefinedValue.new(**) |