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

Method __init__

seleniumbase/undetected/cdp.py:10–19  ·  view source on GitHub ↗
(self, *a, **k)

Source from the content-addressed store, hash-verified

8
9class CDPObject(dict):
10 def __init__(self, *a, **k):
11 super().__init__(*a, **k)
12 self.__dict__ = self
13 for k in self.__dict__:
14 if isinstance(self.__dict__[k], dict):
15 self.__dict__[k] = CDPObject(self.__dict__[k])
16 elif isinstance(self.__dict__[k], list):
17 for i in range(len(self.__dict__[k])):
18 if isinstance(self.__dict__[k][i], dict):
19 self.__dict__[k][i] = CDPObject(self)
20
21 def __repr__(self):
22 tpl = "%s(\n\t{{}}\n\t)" % self.__class__.__name__

Callers

nothing calls this directly

Calls 2

CDPObjectClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected