Runtime Protocol
Runtime domain commands, events and types for Chrome DevTools Protocol.
Methods
pydoll.protocol.runtime.methods
GetExceptionDetailsResponse
module-attribute
GetExceptionDetailsResponse = Response[GetExceptionDetailsResult]
GlobalLexicalScopeNamesResponse
module-attribute
GlobalLexicalScopeNamesResponse = Response[GlobalLexicalScopeNamesResult]
AwaitPromiseCommand
module-attribute
AwaitPromiseCommand = Command[AwaitPromiseParams, AwaitPromiseResponse]
CallFunctionOnCommand
module-attribute
CallFunctionOnCommand = Command[CallFunctionOnParams, CallFunctionOnResponse]
CompileScriptCommand
module-attribute
CompileScriptCommand = Command[CompileScriptParams, CompileScriptResponse]
DiscardConsoleEntriesCommand
module-attribute
DiscardConsoleEntriesCommand = Command[EmptyParams, EmptyResponse]
GetExceptionDetailsCommand
module-attribute
GetExceptionDetailsCommand = Command[GetExceptionDetailsParams, GetExceptionDetailsResponse]
GetHeapUsageCommand
module-attribute
GetHeapUsageCommand = Command[EmptyParams, GetHeapUsageResponse]
GetIsolateIdCommand
module-attribute
GetIsolateIdCommand = Command[EmptyParams, GetIsolateIdResponse]
GetPropertiesCommand
module-attribute
GetPropertiesCommand = Command[GetPropertiesParams, GetPropertiesResponse]
GlobalLexicalScopeNamesCommand
module-attribute
GlobalLexicalScopeNamesCommand = Command[GlobalLexicalScopeNamesParams, GlobalLexicalScopeNamesResponse]
QueryObjectsCommand
module-attribute
QueryObjectsCommand = Command[QueryObjectsParams, QueryObjectsResponse]
ReleaseObjectCommand
module-attribute
ReleaseObjectCommand = Command[ReleaseObjectParams, EmptyResponse]
ReleaseObjectGroupCommand
module-attribute
ReleaseObjectGroupCommand = Command[ReleaseObjectGroupParams, EmptyResponse]
RemoveBindingCommand
module-attribute
RemoveBindingCommand = Command[RemoveBindingParams, EmptyResponse]
RunIfWaitingForDebuggerCommand
module-attribute
RunIfWaitingForDebuggerCommand = Command[EmptyParams, EmptyResponse]
SetAsyncCallStackDepthCommand
module-attribute
SetAsyncCallStackDepthCommand = Command[SetAsyncCallStackDepthParams, EmptyResponse]
SetCustomObjectFormatterEnabledCommand
module-attribute
SetCustomObjectFormatterEnabledCommand = Command[SetCustomObjectFormatterEnabledParams, EmptyResponse]
SetMaxCallStackSizeToCaptureCommand
module-attribute
SetMaxCallStackSizeToCaptureCommand = Command[SetMaxCallStackSizeToCaptureParams, EmptyResponse]
TerminateExecutionCommand
module-attribute
TerminateExecutionCommand = Command[EmptyParams, EmptyResponse]
RuntimeMethod
Bases: str
, Enum
Runtime domain method names.
DISCARD_CONSOLE_ENTRIES
class-attribute
instance-attribute
GET_EXCEPTION_DETAILS
class-attribute
instance-attribute
GLOBAL_LEXICAL_SCOPE_NAMES
class-attribute
instance-attribute
RELEASE_OBJECT_GROUP
class-attribute
instance-attribute
RUN_IF_WAITING_FOR_DEBUGGER
class-attribute
instance-attribute
SET_ASYNC_CALL_STACK_DEPTH
class-attribute
instance-attribute
SET_CUSTOM_OBJECT_FORMATTER_ENABLED
class-attribute
instance-attribute
SET_MAX_CALL_STACK_SIZE_TO_CAPTURE
class-attribute
instance-attribute
AddBindingParams
AwaitPromiseParams
CallFunctionOnParams
Bases: TypedDict
Parameters for callFunctionOn command.
CompileScriptParams
EvaluateParams
Bases: TypedDict
Parameters for evaluate command.
GetExceptionDetailsParams
GetPropertiesParams
Bases: TypedDict
Parameters for getProperties command.
GlobalLexicalScopeNamesParams
QueryObjectsParams
ReleaseObjectParams
ReleaseObjectGroupParams
RemoveBindingParams
RunScriptParams
Bases: TypedDict
Parameters for runScript command.
SetAsyncCallStackDepthParams
SetCustomObjectFormatterEnabledParams
SetMaxCallStackSizeToCaptureParams
AwaitPromiseResult
CallFunctionOnResult
CompileScriptResult
EvaluateResult
GetExceptionDetailsResult
GetHeapUsageResult
GetPropertiesResult
GlobalLexicalScopeNamesResult
QueryObjectsResult
Events
pydoll.protocol.runtime.events
ConsoleAPICalledEvent
module-attribute
ConsoleAPICalledEvent = CDPEvent[ConsoleAPICalledEventParams]
ExceptionRevokedEvent
module-attribute
ExceptionRevokedEvent = CDPEvent[ExceptionRevokedEventParams]
ExecutionContextCreatedEvent
module-attribute
ExecutionContextCreatedEvent = CDPEvent[ExecutionContextCreatedEventParams]
ExecutionContextDestroyedEvent
module-attribute
ExecutionContextDestroyedEvent = CDPEvent[ExecutionContextDestroyedEventParams]
ExecutionContextsClearedEvent
module-attribute
ExecutionContextsClearedEvent = CDPEvent[ExecutionContextsClearedEventParams]
InspectRequestedEvent
module-attribute
InspectRequestedEvent = CDPEvent[InspectRequestedEventParams]
RuntimeEvent
Bases: str
, Enum
Events from the Runtime domain of the Chrome DevTools Protocol.
This enumeration contains the names of Runtime-related events that can be received from the Chrome DevTools Protocol. These events provide information about JavaScript execution, console API calls, exceptions, and execution contexts.
CONSOLE_API_CALLED
class-attribute
instance-attribute
Issued when console API was called.
PARAMETER | DESCRIPTION |
---|---|
type
|
Type of the call. Allowed Values: log, debug, info, error, warning, dir, dirxml, table, trace, clear, startGroup, startGroupCollapsed, endGroup, assert, profile, profileEnd, count, timeEnd
TYPE:
|
args
|
Call arguments.
TYPE:
|
executionContextId
|
Identifier of the context where the call was made.
TYPE:
|
timestamp
|
Call timestamp.
TYPE:
|
stackTrace
|
Stack trace captured when the call was made. The async stack chain is automatically reported for the following call types: assert, error, trace, warning. For other types the async call chain can be retrieved using Debugger.getStackTrace and stackTrace.parentId field.
TYPE:
|
context
|
Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.
TYPE:
|
EXCEPTION_REVOKED
class-attribute
instance-attribute
Issued when unhandled exception was revoked.
PARAMETER | DESCRIPTION |
---|---|
reason
|
Reason describing why exception was revoked.
TYPE:
|
exceptionId
|
The id of revoked exception, as reported in exceptionThrown.
TYPE:
|
EXCEPTION_THROWN
class-attribute
instance-attribute
Issued when exception was thrown and unhandled.
PARAMETER | DESCRIPTION |
---|---|
timestamp
|
Timestamp of the exception.
TYPE:
|
exceptionDetails
|
Details about the exception.
TYPE:
|
EXECUTION_CONTEXT_CREATED
class-attribute
instance-attribute
Issued when new execution context is created.
PARAMETER | DESCRIPTION |
---|---|
context
|
A newly created execution context. |
EXECUTION_CONTEXT_DESTROYED
class-attribute
instance-attribute
Issued when execution context is destroyed.
PARAMETER | DESCRIPTION |
---|---|
executionContextId
|
Id of the destroyed context.
TYPE:
|
executionContextUniqueId
|
Unique Id of the destroyed context.
TYPE:
|
EXECUTION_CONTEXTS_CLEARED
class-attribute
instance-attribute
Issued when all executionContexts were cleared in browser.
INSPECT_REQUESTED
class-attribute
instance-attribute
Issued when object should be inspected (for example, as a result of inspect() command line API call).
PARAMETER | DESCRIPTION |
---|---|
object
|
Object to inspect.
TYPE:
|
hints
|
Hints.
TYPE:
|
executionContextId
|
Identifier of the context where the call was made.
TYPE:
|
BINDING_CALLED
class-attribute
instance-attribute
Notification is issued every time when binding is called.
PARAMETER | DESCRIPTION |
---|---|
name
|
Name of the binding.
TYPE:
|
payload
|
Payload of the binding.
TYPE:
|
executionContextId
|
Identifier of the context where the call was made.
TYPE:
|
ConsoleAPICallType
Bases: str
, Enum
Console API call types.
START_GROUP_COLLAPSED
class-attribute
instance-attribute
BindingCalledEventParams
ConsoleAPICalledEventParams
ExceptionRevokedEventParams
ExceptionThrownEventParams
ExecutionContextCreatedEventParams
ExecutionContextDestroyedEventParams
ExecutionContextsClearedEventParams
Bases: TypedDict
Parameters for executionContextsCleared event.
Types
pydoll.protocol.runtime.types
SerializationType
DeepSerializedValueType
Bases: str
, Enum
Deep serialized value types.
RemoteObjectType
Bases: str
, Enum
Remote object types.
RemoteObjectSubtype
Bases: str
, Enum
Remote object subtypes.
ObjectPreviewType
Bases: str
, Enum
Object preview types.
ObjectPreviewSubtype
Bases: str
, Enum
Object preview subtypes.
PropertyPreviewType
Bases: str
, Enum
Property preview types.
PropertyPreviewSubtype
Bases: str
, Enum
Property preview subtypes.
SerializationOptions
DeepSerializedValue
CustomPreview
PropertyPreview
EntryPreview
ObjectPreview
RemoteObject
Bases: TypedDict
Mirror object referencing original JavaScript object.
PropertyDescriptor
Bases: TypedDict
Object property descriptor.
InternalPropertyDescriptor
PrivatePropertyDescriptor
CallArgument
ExecutionContextDescription
ExceptionDetails
Bases: TypedDict
Detailed information about exception.