common_browser.schemas.data.events
Observed browser event facts; URLs and text require deliberate access.
Classes
EventData
An observed event, optionally carrying a saved artifact or popup reference.
__init__
def __init__(*, kind: Literal['navigation', 'request', 'response', 'popup', 'download', 'dialog', 'console'], observed_at: datetime = (lambda: datetime.now(UTC))(), page: PageRef | None = None, url: str | None = None, method: str | None = None, status: int | None = None, text: str | None = None, dialog_type: str | None = None, console_type: str | None = None, artifact: ArtifactData | None = None, headers: Mapping[str, SecretStr] = (lambda: MappingProxyType({}))(), body: SecretBytes | None = None) -> NoneFields and properties declared here; inherited members belong to the bases above.
artifact
artifact: ArtifactData | None = field(default=None, repr=False)body
body: SecretBytes | None = field(default=None, repr=False)console_type
console_type: str | None = Nonedialog_type
dialog_type: str | None = Noneheaders
headers: Mapping[str, SecretStr] = field(default_factory=(lambda: MappingProxyType({})), repr=False)kind
kind: Literal['navigation', 'request', 'response', 'popup', 'download', 'dialog', 'console']method
method: str | None = Noneobserved_at
observed_at: datetime = field(default_factory=(lambda: datetime.now(UTC)))page
page: PageRef | None = Nonestatus
status: int | None = Nonetext
text: str | None = field(default=None, repr=False)url
url: str | None = field(default=None, repr=False)