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

Method __init__

py/private/cdp.py:192–199  ·  view source on GitHub ↗
(self, ws, session_id, target_id)

Source from the content-addressed store, hash-verified

190
191class CdpBase:
192 def __init__(self, ws, session_id, target_id):
193 self.ws = ws
194 self.session_id = session_id
195 self.target_id = target_id
196 self.channels = defaultdict(set)
197 self.id_iter = itertools.count()
198 self.inflight_cmd = {}
199 self.inflight_result = {}
200
201 async def execute(self, cmd: Generator[dict, T, Any]) -> T:
202 """Execute a command on the server and wait for the result.

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected