Developed in collaboration with the Chromium team, ChromeDriver is a standalone server which implements WebDriver's wire protocol.
The ChromeDriver consists of three separate pieces. There is the browser itself ('chrome'), the language bindings provided by the Selenium project ('the driver') and an executable downloaded from the Chromium project which acts as a bridge between 'chrome' and the 'driver'. This executable is called 'chromedriver', but we'll try and refer to it as the 'server' in this page to reduce confusion.
We have already made a post on how to change Safari’s download location on Mac. And now, we are all set to walk you through the steps to change the download location in Chrome and Firefox. Let’s sail through! How to Change Download Location in Chrome on Mac. Launch Chrome on your Mac.
Requirements
The server expects you to have Chrome installed in the default location for each system:
OS | Expected Location of Chrome |
---|---|
Linux | /usr/bin/google-chrome1 |
Mac | /Applications/Google Chrome.app/Contents/MacOS/Google Chrome |
Windows XP | %HOMEPATH%Local SettingsApplication DataGoogleChromeApplicationchrome.exe |
Windows Vista and newer | C:Users%USERNAME%AppDataLocalGoogleChromeApplicationchrome.exe |
1 For Linux systems, the ChromeDriver expects /usr/bin/google-chrome to be a symlink to the actual Chrome binary. See also the section on overriding the Chrome binary location .
Quick installation
- Mac users with Homebrew installed:
brew tap homebrew/cask && brew cask install chromedriver
- Debian based Linux distros:
sudo apt-get install chromium-chromedriver
- Windows users with Chocolatey installed:
choco install chromedriver
Getting Started
Read ChromeDriver user documentation
Running ChromeDriver as a standalone process
Since the ChromeDriver implements the wire protocol, it is fully compatible with any RemoteWebDriver client. Simply start up the ChromeDriver executable (that works as a server), create a client, and away you go:
Troubleshooting
If you are using the RemoteWebDriver and you get the The path to the chromedriver executable must be set by the webdriver.chrome.driver system property error message you likely need to check that one of these conditions is met:
- The chromedriver binary is in the system path, or
- The Selenium Server was started with -Dwebdriver.chrome.driver=c:pathtoyourchromedriver.exe
ChromeDriver user documentation provides more information on the known issues and workarounds.
Think you've found a bug?
Check if the bug has been reported yet. If it hasn't, please open a new issue and be sure to include the following:
- What platform are you running on?
- What version of the chromedriver are you using?
- What version of Chrome are you using?
- The failure stacktrace, if available.
- The contents of chromedriver's log file (chromedriver.log).
Of course, if your bug has already been reported, you can update the issue with the information above. Having more information to work on makes it easier for us to track down the cause of the bug.
Testing earlier versions of Chrome
ChromeDriver is only compatible with Chrome version 12.0.712.0 or newer. If you need to test an older version of Chrome, use Selenium RC and a Selenium-backed WebDriver instance:
More ChromeDriver links
Stuck and need some help?
Talk to a HumanMany websites request a browser to share the user’s real location before they load content. To safeguard your privacy, this guide will teach you how to disable geolocation sharing on your browser.
Jump to…
Google Chrome
Mozilla Firefox
Microsoft Internet Explorer
Microsoft Edge
Apple Safari
Opera
Mozilla Firefox
Microsoft Internet Explorer
Microsoft Edge
Apple Safari
Opera
Google Chrome
- Select the Chrome Menu Button (⋮ or ≡)
- Select Settings
- Scroll down and select Advanced
- Under Privacy and Security, select Content settings…
- Navigate to the Location section
- Click the slider for Ask before accessing (Recommended)
Need help? Contact the ExpressVPN Support Team for immediate assistance.
Mozilla Firefox
- In the URL bar, enter
about:config
- You will see a “This might void your warranty” warning. Click I accept the risk!
- In the search bar, enter
geo.enabled
- Double click on the geo.enabled preference so that the value becomes false
Need help? Contact the ExpressVPN Support Team for immediate assistance.
Microsoft Internet Explorer
- Select the Gear Icon
- Select Internet Options
- Select the Privacy tab
- Under “Location”, check the box for Never allow websites to request your physical location
- Next to the box for “Never allow websites to request your physical location”, select Clear Sites to remove old sites which have access to your physical location
Need help? Contact the ExpressVPN Support Team for immediate assistance.
Microsoft Edge
- On your Windows 10 Desktop, hit Win + A to open Action Center
- Select All Settings > Privacy > Location
- Click the Location Service slider to turn it off
- Scroll down to Location History
- Under Clear history on this device, click Clear
Need help? Contact the ExpressVPN Support Team for immediate assistance.
Apple Safari
- Select Safari in the top left corner of the browser
- Select Preferences…
- In the Privacy tab, under Website Tracking, make sure Prevent cross-site tracking and Ask websites not to track me are checked
Need help? Contact the ExpressVPN Support Team for immediate assistance.
Opera
- In the URL bar, enter
about:config
- On the left-side menu bar, select Websites
- Scroll down to Location and selectDo not allow any site to track my physical location
Need help? Contact the ExpressVPN Support Team for immediate assistance.
Was this article helpful?