Skip to content

Using SeleniumBase in UC mode #2322

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

You must be logged in to vote

Many of your questions may already be answered in the UC Mode video tutorial:

https://www.youtube.com/watch?v=5dMFI3e85ig

SeleniumBase fixes the user agent in headless mode by swapping HeadlessChrome with just Chrome. Otherwise, Chrome uses the natural browser's user agent, which is the best way to go because changing that could lead to an inconsistency with the browser's natural fingerprint (which can get you detected).

If you want to set a user_data_dir, you can. This lets you keep a Chrome profile between tests. But be sure you never mix a UC Mode user_data_dir with one that is used by a regular Chrome instance, because that will get you detected.

Here are a few of the UC Mode methods…

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