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

Class BrowserError

py/private/cdp.py:148–157  ·  view source on GitHub ↗

This exception is raised when the browser's response to a command indicates that an error occurred.

Source from the content-addressed store, hash-verified

146
147
148class BrowserError(Exception):
149 """This exception is raised when the browser's response to a command indicates that an error occurred."""
150
151 def __init__(self, obj):
152 self.code = obj.get("code")
153 self.message = obj.get("message")
154 self.detail = obj.get("data")
155
156 def __str__(self):
157 return f"BrowserError<code={self.code} message={self.message}> {self.detail}"
158
159
160class CdpConnectionClosed(WsConnectionClosed):

Callers 2

_handle_cmd_responseMethod · 0.85
_reader_taskMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected