Skip to content

How do I set pass ChromeOptions using Driver(uc=True)? #2482

Answered by mdmintz
iamumairayub asked this question in Q&A
Discussion options

You must be logged in to vote

Options are passed directly into the Driver() on initialization:

For example, there's already an option to block images with block_images=True:

prefs["profile.managed_default_content_settings.images"] = 2

cap_string is only for Selenium Grid use with compatible grids. And the Selenium Grid isn't compatible with UC Mode, which means you can't use cap_string with UC Mode either.


Here's a full list of options available today:

Driver(
    browser=None,  # Choose from "chrome", "edge", "firefox", or "safari".

Replies: 5 comments 17 replies

Comment options

You must be logged in to vote
2 replies
@joako233
Comment options

@mdmintz
Comment options

Answer selected by mdmintz
Comment options

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

@joako233
Comment options

@mdmintz
Comment options

Comment options

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

Comment options

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

@estiven94ops
Comment options

Comment options

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

@estiven94ops
Comment options

@mdmintz
Comment options

@estiven94ops
Comment options

@mdmintz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants