MCPcopy Create free account
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / DummyDriver

Class DummyDriver

tests/test_chromium.py:300–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298 dummy_module = types.ModuleType("undetected_chromedriver")
299
300 class DummyDriver:
301 def __init__(self, options):
302 self.options = options
303 self.page_source = "<html>selenium content</html>"
304
305 def quit(self):
306 pass
307
308 dummy_module.Chrome = lambda options: DummyDriver(options)
309 monkeypatch.setitem(sys.modules, "undetected_chromedriver", dummy_module)

Calls

no outgoing calls