java.lang.IllegalStateException: The driver executable does not exist: C:\Selenium\chromedriver_win32.exe



  • package com.selenium;
    import org.openqa.selenium.*;
    import org.openqa.selenium.WebDriver;
    import org.openqa.selenium.chrome.ChromeDriver;
    
    public class MySelenium {
    
        public static void main(String[] args) {
          System.setProperty("webdriver.chrome.driver", "C:\\Selenium\\chromedriver_win32.exe");
          WebDriver driver = new ChromeDriver();
          driver.get("https://login.yahoo.com");
        }
    }
    

    path is correct , but it showing this issue . what will i do after this ?



  • Download latest chrome driver from this link : Download

    Extract the zip and Copy choromedriver.exe in E or C

    System.setProperty("webdriver.chrome.driver","E:\\chromedriver.exe");
    

Log in to reply
 

Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2