MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / send

Method send

seleniumbase/undetected/cdp.py:107–117  ·  view source on GitHub ↗
(self, method, params)

Source from the content-addressed store, hash-verified

105 return resp.json()
106
107 async def send(self, method, params):
108 self._reqid += 1
109 async with websockets.connect(self.wsurl) as ws:
110 await ws.send(
111 json.dumps(
112 {"method": method, "params": params, "id": self._reqid}
113 )
114 )
115 self._last_resp = await ws.recv()
116 self._last_json = json.loads(self._last_resp)
117 self.log.info(self._last_json)
118
119 def get(self, uri):
120 from urllib.parse import unquote

Callers 10

open_new_tabMethod · 0.45
_start_detachedFunction · 0.45
mainFunction · 0.45
raw_cdp_mobile.pyFile · 0.45
receiveXHRFunction · 0.45
receiveXHRFunction · 0.45
block_urlsFunction · 0.45

Calls 1

connectMethod · 0.80

Tested by

no test coverage detected