I have downloaded driver of same version of chrome
Chrome Version 95.0.4638.54 (Official Build) (64-bit) chromedriver_win32.zip) but still getting below error. Please help me to resolve it.
Similarly i have tried for edge as well by for edge also facing same error
Code:
System.setProperty("webdriver.chrome.driver","C:\Users\611605854\Documents\sel\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("https://www.google.com/");
error:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Starting ChromeDriver 95.0.4638.17 (a9d0719444d4b035e284ed1fce73bf6ccd789df2-refs/branch-heads/4638@{#178}) on port 63069
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: unknown error: Chrome failed to start: crashed.
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location C:\Program Files\Google\Chrome\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Build info: version: '4.0.0', revision: '3a21814679'
os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_192'
Driver info: org.openqa.selenium.chrome.ChromeDriver