Download Latest Version 4.42.5 - CDP Mode_ Patch 64 source code.tar.gz (1.3 MB)
Email in envelope

Get an email when there's a new version of SeleniumBase

Home / v4.42.3
Name Modified Size InfoDownloads / Week
Parent folder
4.42.3 - CDP Mode_ Patch 63 source code.tar.gz 2025-10-08 1.3 MB
4.42.3 - CDP Mode_ Patch 63 source code.zip 2025-10-08 1.5 MB
README.md 2025-10-08 2.4 kB
Totals: 3 Items   2.8 MB 4

CDP Mode: Patch 63


For Pure CDP Mode (sb_cdp), we're adding the ability to set options via command-line args. Here's what to expect, with examples:

:::zsh
python SCRIPT.py --incognito
python SCRIPT.py --guest
python SCRIPT.py --headless
python SCRIPT.py --ad-block
python SCRIPT.py --agent="MY NEW USER AGENT"
python SCRIPT.py --geolocation="(31.774390, 35.222450)"
python SCRIPT.py --timezone=="Asia/Kolkata"
python SCRIPT.py --platform="MacIntel"
python SCRIPT.py --lang="fr"
python SCRIPT.py --proxy="USER:PASS@SERVER:PORT"
python SCRIPT.py --binary-location="/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"

There are a few additional options on Linux, such as --gui/--headed, (which overrides the default Linux headless mode). And there's --xvfb on Linux for the special virtual display (which may already be set by default if not using other options).

This aims to simplify option-handling, as you will no longer need to modify a script itself in order to change how it runs.

Note that all these options were already available via method args passed into sb_cdp.Chrome(). Method args always take priority over command-line options. For example, if you set the binary_location / browser_executable_path via method arg, but set a different one on the command-line, then the method arg takes priority.

What's Changed

Full Changelog: https://github.com/seleniumbase/SeleniumBase/compare/v4.42.2...v4.42.3

Source: README.md, updated 2025-10-08