Skip to content

--chromium-arg="ARG=N,ARG2" function #2236

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

You must be logged in to vote

pytest --agent=AGENT already sets the user agent string. (With some formats it would be agent=AGENT.) But if you're using UC Mode, you shouldn't mess with that value, as it already gets set to the value it needs to be for the browser to remain undetected.

--disable-popup-blocking is already set in UC Mode, so don't set it twice:

chrome_options.add_argument("--disable-popup-blocking")

For args that aren't already covered by existing seleniumbase options, use --chromium-arg=ARG1,ARG2=VALUE, eg:
pytest --chromium-arg="--enable-sync,--use-gl=angle", for example. (Comma-separated options)

Replies: 1 comment

Comment options

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