Skip to content
Discussion options

You must be logged in to vote

For blocking all images, use the block_images arg. Eg.

from seleniumbase import SB

with SB(uc=True, block_images=True) as sb:
    sb.open("https://github.com/readme")
    breakpoint()

For blocking specific content, (eg. ads), see: SeleniumBase/examples/test_cdp_ad_blocking.py

Additionally, you could set host_resolver_rules. More info: #2281

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@mdmintz
Comment options

@JimKarvo
Comment options

@mdmintz
Comment options

@JimKarvo
Comment options

@mdmintz
Comment options

Answer selected by mdmintz
Comment options

You must be logged in to vote
1 reply
@mdmintz
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants