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

Method __init__

py/private/cdp.py:151–154  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

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}"

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected