MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / ScriptError

Class ScriptError

py/selenium/webdriver/remote/script.py:59–77  ·  view source on GitHub ↗

A JavaScript error observed in the browser. Attributes: message: The error message. source: Source file/URL where the error occurred (top stack frame). line_number: Line number of the error. column_number: Column number of the error. stack_trace: Formatte

Source from the content-addressed store, hash-verified

57
58@dataclass
59class ScriptError:
60 """A JavaScript error observed in the browser.
61
62 Attributes:
63 message: The error message.
64 source: Source file/URL where the error occurred (top stack frame).
65 line_number: Line number of the error.
66 column_number: Column number of the error.
67 stack_trace: Formatted stack trace, one ``at function (url:line:col)``
68 line per frame.
69 timestamp: Time the entry was generated, in milliseconds since epoch.
70 """
71
72 message: str | None = None
73 source: str | None = None
74 line_number: int | None = None
75 column_number: int | None = None
76 stack_trace: str | None = None
77 timestamp: float | None = None
78
79
80@dataclass

Calls

no outgoing calls

Tested by

no test coverage detected