Download Chromedriver For Mac
Chromedriver Latest Version
I think that the easy way for running mac osx, chrome and selenium together is like this on mac os terminal: # download selenium jar curl -L0 -o selenium-server-standalone.jar # install chromedriver using cask brew cask install chromedriver # start chrome driver brew services start chromedriver # Successfully started `chromedriver` (label:homebrew.mxcl.chromedriver) # start selenium server java -jar selenium-server-standalone.jar #14:38:20.684 INFO - Selenium build info: version: '3.9.1', revision: '63f7b50' #14:38:20.685 INFO - Launching a standalone Selenium Server on port 4444. If you want to use Selenium WebDriver with Chrome, first download ChromeDriver - WebDriver for Chrome. This can be installed via Homebrew with brew install chromedriver, or manually by downloading, extracting, moving and setting the PATH as follows: $ cd $HOME/Downloads $ wget $ unzip chromedrivermac32.zip $ mkdir -p $HOME/bin $ mv chromedriver $HOME/bin $ echo 'export PATH=$PATH:$HOME/bin' $HOME/.bashprofile Source: You should then read, in particular the sample code which shows how you map the path to the executable and instantiate ChromeDriver. If you have a reference to the driver in the PATH variable, you can omit the configuration line. You can install both packed (.crx file) and unpacked (directory) extensions via ChromeDriver.
See the code snippets for setting either up. If you were using Selenium IDE for FireFox instead, there is no version available for Chrome. The best alternative I know of is. Sometimes you will face a problem with the old version of chromedriver and when you try to install it using this command: brew cask install chromedriver It shows you the following: Error: It seems there is already a Binary at '/usr/local/bin/chromedriver'; not linking.
Download Chromedriver For Mac
However, you can the following step: brew cask reinstall chromedriver If it still shows you the same error, you can remove it with the following command rm /usr/local/bin/chromedriver and install it again brew cask install chromedriver You should have the last updated version of chrome driver. One way is if you have homebrew on your mac, then on terminal, use this command brew install chromedriver.
Then you need to download chromedriver on your machine, do it from Download latest version It will look like, 'chromedrivermac32.zip' (doesn't matter if its 32 bit, it will work for 64 bit MAC as well). Use this code for open Chrome if your chromedriver that you downloaded is inside your project folder and looks like this.Project folder/Chrome/chromedriver System.setProperty('webdriver.chrome.driver', System.getProperty('user.dir')+'/Chrome/chromedriver'); driver=new ChromeDriver.