java.lang.IllegalStateException: The driver executable does not exist chrome driver

半城伤御伤魂 提交于 2019-12-06 16:14:08

Two things

  1. You don't have to put quotes around the values in property files
  2. are you sure you have given the right path, to me it looks like spelling mistake selenium bwosers shouldn't it be selenium browsers
RGudi

(Below is the example of my code i am getting an error) import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver;

public class FirstScript {

    public static void main(String[] args) {

        System.setProperty("webdriver.chrome.driver","/Users/rahulgudi/Downloads");
        WebDriver driver = new ChromeDriver();
        driver.get("http://google.com");


    }

Exception in thread "main" java.lang.IllegalStateException: The driver executable does not exist: /Users/rahulgudi/Downloads/SeleniumProject

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!