I am getting this error.
Exception in thread "main" java.lang.IllegalStateException: The driver is not executable: /home/hashconnect/Desktop/Priya bugsheet/selenium/chromedriver.exe
Creating a new folder "Drivers" in that project and changed the location as ".\drivers\chromedriver.exe"
This is my code:
package demo;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class test {
public static void main(String[] args) throws InterruptedException {
// TODO Auto-generated method stub
System.setProperty("webdriver.chrome.driver","/home/hashconnect/Desktop/Priya bugsheet/selenium/chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.manage().window().maximize();
Thread.sleep(5000);
}
}
Expected: System should launch the chrome browser
Actual: It showing error message:
Exception in thread "main" java.lang.IllegalStateException: The driver is not executable: /home/hashconnect/Desktop/Priya bugsheet/selenium/chromedriver.exe