Skip to content

common_browser.schemas.context

Private accumulated operation and resource state; never a public SDK bag.

Classes

ContextState

__init__

def __init__(native: Any, ref: ContextRef, owned: bool, config: ContextConfig, closed: bool = False, closing: bool = False, active: int = 0, guards: int = 0, wide_active: int = 0, subscriptions: set[Any] = set(), listeners: list[tuple[str, Any]] = list(), route: Any = None, tracing: bool = False) -> None

Fields and properties declared here; inherited members belong to the bases above.

active

active: int = 0

closed

closed: bool = False

closing

closing: bool = False

config

config: ContextConfig

guards

guards: int = 0

listeners

listeners: list[tuple[str, Any]] = field(default_factory=list)

native

native: Any

owned

owned: bool

ref

ref: ContextRef

route

route: Any = None

subscriptions

subscriptions: set[Any] = field(default_factory=set)

tracing

tracing: bool = False

wide_active

wide_active: int = 0

NodeState

__init__

def __init__(ref: ElementRef, native: Any, fingerprint: str) -> None

Fields and properties declared here; inherited members belong to the bases above.

fingerprint

fingerprint: str

native

native: Any

ref

ref: ElementRef

OperationState

__init__

def __init__(op: str, deadline: float, phase: OperationPhase = 'not_started', value: Any = None, evidence: Any = None, issues: list[BrowserIssue] = list(), coverage: BrowserCoverage | None = None, status: BrowserStatus = 'ok', reason: str | None = None) -> None

Fields and properties declared here; inherited members belong to the bases above.

coverage

coverage: BrowserCoverage | None = None

deadline

deadline: float

evidence

evidence: Any = None

issues

issues: list[BrowserIssue] = field(default_factory=list)

op

op: str

phase

phase: OperationPhase = 'not_started'

reason

reason: str | None = None

remaining_ms

Read-only property.

remaining_ms: float

status

status: BrowserStatus = 'ok'

value

value: Any = None

PageState

__init__

def __init__(native: Any, ref: PageRef, context: ContextRef, owned: bool, closed: bool = False, crashed: bool = False, closing: bool = False, active: int = 0, lock: asyncio.Lock = asyncio.Lock(), nodes: OrderedDict[str, NodeState] = OrderedDict(), frames: dict[str, Any] = dict(), listeners: list[tuple[str, Any]] = list()) -> None

Fields and properties declared here; inherited members belong to the bases above.

active

active: int = 0

closed

closed: bool = False

closing

closing: bool = False

context

context: ContextRef

crashed

crashed: bool = False

frames

frames: dict[str, Any] = field(default_factory=dict)

listeners

listeners: list[tuple[str, Any]] = field(default_factory=list)

lock

lock: asyncio.Lock = field(default_factory=(asyncio.Lock))

native

native: Any

nodes

nodes: OrderedDict[str, NodeState] = field(default_factory=OrderedDict)

owned

owned: bool

ref

ref: PageRef