MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / raw_ad_blocking.py

File raw_ad_blocking.py

examples/cdp_mode/raw_ad_blocking.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""Test Ad-Blocking using mycdp.network.set_blocked_urls().
2tab.send() is the stealthy version of execute_cdp_cmd()."""
3import mycdp
4from seleniumbase import decorators

Callers

nothing calls this directly

Calls 8

block_urlsFunction · 0.85
get_event_loopMethod · 0.80
get_active_tabMethod · 0.80
gotoMethod · 0.45
get_page_sourceMethod · 0.45
assert_falseMethod · 0.45
post_messageMethod · 0.45
quitMethod · 0.45

Tested by

no test coverage detected