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

Method __init__

seleniumbase/undetected/cdp.py:46–61  ·  view source on GitHub ↗
(self, options)

Source from the content-addressed store, hash-verified

44 )
45
46 def __init__(self, options):
47 self.server_addr = "http://{0}:{1}".format(
48 *options.debugger_address.split(":")
49 )
50 self._reqid = 0
51 self._session = requests.Session()
52 self._last_resp = None
53 self._last_json = None
54 with requests.Session() as session:
55 resp = session.get(
56 self.server_addr + self.endpoints.json,
57 headers={"Connection": "close"},
58 timeout=2,
59 )
60 self.sessionId = resp.json()[0]["id"]
61 self.wsurl = resp.json()[0]["webSocketDebuggerUrl"]
62
63 def tab_activate(self, id=None):
64 if not id:

Callers 1

__init__Method · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected