Mac OSX - IllegalStateException: The driver is not executable:
Quick installation of the latest ChromeDriver
To install the latest version of ChromeDriver:
Mac users with Homebrew:
brew tap homebrew/cask && brew cask install chromedriver
Original answered Nov 15 '17 at 12:04
The error IllegalStateException: The driver is not executable: /Users/roja/Documents/GitHub/testautomation/chromedrivers/chromedriver_osx
says it all. You have to make exactly 4 changes as follows :
Change
Webdriver.chrome.driver
as :webdriver.chrome.driver
Change
/Users/roja/Automation/chromedriver_osx
as we need to include the name of thewebdriver binary
i.e.chromedriver
as avalue
:/Users/roja/Automation/chromedriver_osx/chromedriver
Change
driver = new ChromeDriver();
as :WebDriver driver = new ChromeDriver();
Remove unwanted
throws InterruptedException
to keep your code short and simple.
ERROR : java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property;
Please check your browser version as well. because selenium 2.X not support firefox 47+ versions.
Related Topics
Text-Mouseover Popups Over a Swing Jtextarea
Why Does (360/24)/60 = 0 ... in Java
Adding JPAnels from Other Classes to the Cardlayout
Jtable with Titled Rows and Columns
Detecting Collision of Two Sprites That Can Rotate
<Form Action="/Sampleservlet" Giving Me Exception
How to Change the Dock Icon of a Java Program
Create a New Line in Java's Filewriter
How to Make Notepad to Save Text in Utf-8 Without the Bom
Using Jasperreports with a Relative Path
Date Format Parse Exception - "Eee Mmm Dd Hh:Mm:Ss Z Yyyy"
How to Display a Svg Byte Array as an Image in a Jasperreport
Java Applet Game 2D Window Scrolling
How to Put All Required Jar Files in a Library Folder Inside the Final Jar File with Maven