I have added my chrome driver path in my system variable but still am getting the illegal exception , when i run my selenium script as :
WebDriver driver = new ChromeDriver();
I have added my chrome driver path in my system variable but still am getting the illegal exception , when i run my selenium script as :
WebDriver driver = new ChromeDriver();
Seems like you have entered the wrong driver path.
Make sure to exclude the chromedriver.exe
from your path variable.
To verify, open the Command Line (Run cmd.exe) -> Type chromedriver ->Hit Enter -> ChromeDriver
After setting the path make sure to restart your IDE.