How to Install Chrome and the ChromeDriver#
Install Google Chrome#
Google Chrome is a free, open-source web browser developed by Google. Visit their website to find out more and download the latest version of Chrome.
Install ChromeDriver#
With PyPI:
pip install chromedriver
With Homebrew:
brew install chromedriver
Google also provides a guide on how to install and download the ChromeDriver for Chrome.
Troubleshooting and Tips#
If you are planning to use different browsers, please refer to the guide on options for browser types.
Tip
Always keep your browser and driver up to date. The ChromeDriver version should usually match the browser version, otherwise Browserist might throw an error.
How to Use Chrome with Browserist#
Once you have successfully installed the Chrome browser and its ChromeDriver, you can start using them with Browserist. Here is an example of how to automate Chrome using Browserist. Simply select Chrome as the browser type in the BrowserSettings
configuration:
Python | |
---|---|
1 2 3 4 5 6 7 |
|
Lean more about how to use different browser types.
Default Browser
Chrome is the default browser type for Browserist – except when using Windows where Edge is the default browser. Therefore, in most cases, there is no need to specify the browser type in the BrowserSettings
configuration, which simplifies your code:
Python | |
---|---|
1 2 3 4 5 |
|