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) -> NoneFields and properties declared here; inherited members belong to the bases above.
active
active: int = 0closed
closed: bool = Falseclosing
closing: bool = Falseconfig
config: ContextConfigguards
guards: int = 0listeners
listeners: list[tuple[str, Any]] = field(default_factory=list)native
native: Anyowned
owned: boolref
ref: ContextRefroute
route: Any = Nonesubscriptions
subscriptions: set[Any] = field(default_factory=set)tracing
tracing: bool = Falsewide_active
wide_active: int = 0NodeState
__init__
def __init__(ref: ElementRef, native: Any, fingerprint: str) -> NoneFields and properties declared here; inherited members belong to the bases above.
fingerprint
fingerprint: strnative
native: Anyref
ref: ElementRefOperationState
__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) -> NoneFields and properties declared here; inherited members belong to the bases above.
coverage
coverage: BrowserCoverage | None = Nonedeadline
deadline: floatevidence
evidence: Any = Noneissues
issues: list[BrowserIssue] = field(default_factory=list)op
op: strphase
phase: OperationPhase = 'not_started'reason
reason: str | None = Noneremaining_ms
Read-only property.
remaining_ms: floatstatus
status: BrowserStatus = 'ok'value
value: Any = NonePageState
__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()) -> NoneFields and properties declared here; inherited members belong to the bases above.
active
active: int = 0closed
closed: bool = Falseclosing
closing: bool = Falsecontext
context: ContextRefcrashed
crashed: bool = Falseframes
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: Anynodes
nodes: OrderedDict[str, NodeState] = field(default_factory=OrderedDict)owned
owned: boolref
ref: PageRef