Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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().
2
tab.send() is the stealthy version of execute_cdp_cmd().
""
"
3
import
mycdp
4
from
seleniumbase
import
decorators
Callers
nothing calls this directly
Calls
8
block_urls
Function · 0.85
get_event_loop
Method · 0.80
get_active_tab
Method · 0.80
goto
Method · 0.45
get_page_source
Method · 0.45
assert_false
Method · 0.45
post_message
Method · 0.45
quit
Method · 0.45
Tested by
no test coverage detected