Media Session Controls #3983
-
Hi Michael, What’s the recommended way in SeleniumBase to launch Chrome with flags that disable Media Session / Global Media Controls and background throttling (so OS ‘playing in background’ overlays don’t appear)? When using uc=True, which WebDriver fingerprints does SeleniumBase mask for Y0UTube (e.g., navigator.webdriver, chrome.runtime hooks), and are there any additional SB options you recommend for running multiple headed instances reliably? Is there a built-in way in SeleniumBase to keep a window focused (bring to front) while running steps, or should I call bring_to_front()/window focus APIs manually? Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
If there's a chromium arg for media session controls, then include it with All fingerprints are masked in CDP Mode. (The browser looks like a regular human-controlled browser to websites.) However, if using Docker, that's a problem because there are hardcoded fingerprints that make your bot easily detectable. (There no known workaround for Docker stealth.) You can call |
Beta Was this translation helpful? Give feedback.
If there's a chromium arg for media session controls, then include it with
chromium_arg
. (I haven't memorized all possible options.)All fingerprints are masked in CDP Mode. (The browser looks like a regular human-controlled browser to websites.) However, if using Docker, that's a problem because there are hardcoded fingerprints that make your bot easily detectable. (There no known workaround for Docker stealth.)
You can call
sb.cdp.bring_to_front()
to bring the active browser window to the front. Some methods will call this automatically.