To run web automation, you'll need webdrivers for each browser you plan on using. With SeleniumBase, drivers are downloaded automatically as needed into the SeleniumBase drivers folder.
๐๏ธ You can also download drivers manually with these commands:
seleniumbase get chromedriver seleniumbase get geckodriver seleniumbase get edgedriver
After running the commands above, web drivers will get downloaded into the seleniumbase/drivers/ folder. SeleniumBase uses those drivers during tests. (The drivers don't come with SeleniumBase by default.)
If the necessary driver is not found in this location while running tests, SeleniumBase will instead look for the driver on the System PATH. If the necessary driver is not on the System PATH either, SeleniumBase will automatically attempt to download the required driver.
๐๏ธ You can also download specific versions of drivers. Examples:
sbase get chromedriver 114 sbase get chromedriver 114.0.5735.90 sbase get chromedriver stable sbase get chromedriver beta sbase get chromedriver dev sbase get chromedriver canary sbase get chromedriver previous # One major version before the stable version sbase get chromedriver mlatest # Milestone latest version for detected browser sbase get edgedriver 115.0.1901.183
(NOTE: sbase is a shortcut for seleniumbase)
Browser Binaries:
๐๏ธ Use the sbase get command to download the Chrome for Testing and Chrome-Headless-Shell browser binaries. Example:
sbase get chromium # (For base `Chromium`) sbase get cft # (For `Chrome for Testing`) sbase get chs # (For `Chrome-Headless-Shell`)
Those commands download those binaries into the seleniumbase/drivers folder. (There are subfolders, such as cft_drivers, chs_drivers, and chromium_drivers.)
To use the base Chromium binary in SeleniumBase scripts, add --use-chromium on the command-line, or set use_chromium=True from within scripts.
To use the cft or chs binaries in SeleniumBase scripts, set the binary_location to cft or chs, use --cft / --chs or set cft=True / chs=True.
(Source: https://googlechromelabs.github.io/chrome-for-testing/)
