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

Class CdpConnectionClosed

py/private/cdp.py:160–173  ·  view source on GitHub ↗

Raised when a public method is called on a closed CDP connection.

Source from the content-addressed store, hash-verified

158
159
160class CdpConnectionClosed(WsConnectionClosed):
161 """Raised when a public method is called on a closed CDP connection."""
162
163 def __init__(self, reason):
164 """Constructor.
165
166 Args:
167 reason: wsproto.frame_protocol.CloseReason
168 """
169 self.reason = reason
170
171 def __repr__(self):
172 """Return representation."""
173 return f"{self.__class__.__name__}<{self.reason}>"
174
175
176class InternalError(Exception):

Callers 1

executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected