-3

I am using Mac OS and trying to open the Chrome browser with Selenium, getting this error.

Mac+Java+Selenium+Chromedriver

Bhupendra Singh Rautela
  • 3,406
  • 6
  • 21
  • 25

2 Answers2

1

Make sure you're using a chromedriver that is compatible with your mac version. Then try giving below permission to chromedriver.

chmod 777 chromedriver

Appu Mistri
  • 768
  • 8
  • 26
1

After downloading chrome driver from "https://chromedriver.storage.googleapis.com/index.html?path=75.0.3770.140/" for MAC and copy to your mac username folder.

and also try to giving full permission to the chromedriver and it will work fine by following cmd

chmod +x chromedriver

Please note not to give ".exe" extension, In the code you have to write as below:

System.setProperty("webdriver.chrome.driver", "/Users/macusernamefolder/chromedriver");
WebDriver driver = new ChromeDriver();
Vikas Suryawanshi
  • 522
  • 1
  • 5
  • 12
sneh
  • 36
  • 3