{"id":1087,"hash":"03995e533051bdad35341a89338e2ca4b8f15ff11d2ee6ded6a2fef0f086c67b","pattern":"WebDriverException: unknown error: DevToolsActivePort file doesn&#39;t exist while trying to initiate Chrome Browser","full_message":"I am trying to launch chrome with an URL, the browser launches and it does nothing after that.\n\nI am seeing the below error after 1 minute: \n\nUnable to open browser with url: 'https://www.google.com' (Root cause: org.openqa.selenium.WebDriverException: unknown error: DevToolsActivePort file doesn't exist\n  (Driver info: chromedriver=2.39.562718 (9a2698cba08cf5a471a29d30c8b3e12becabb0e9),platform=Windows NT 10.0.15063 x86_64) (WARNING: The server did not provide any stacktrace information)\n\nMy configuration:\n\nChrome : 66\nChromeBrowser : 2.39.56\n\nP.S everything works fine in Firefox","ecosystem":"pypi","package_name":"google-chrome","package_version":null,"solution":"Update:\n\nI am able to get through the issue and now I am able to access the chrome with desired url.\n\nResults of trying the provided solutions:\n\nI tried all the settings as provided above but I was unable to resolve the issue\n\nExplanation regarding the issue:\n\nAs per my observation DevToolsActivePort file doesn't exist is caused when chrome is unable to find its reference in scoped_dirXXXXX folder.\n\nSteps taken to solve the issue \n\nI have killed all the chrome processes and chrome driver processes.\nAdded the below code to invoke the chrome\n\nSystem.setProperty(\"webdriver.chrome.driver\",\"pathto\\\\chromedriver.exe\");    \nChromeOptions options = new ChromeOptions();\noptions.setExperimentalOption(\"useAutomationExtension\", false);\nWebDriver driver = new ChromeDriver(options);\ndriver.get(url);\n\nUsing the above steps I was able to resolve the issue.\n\nThanks for your answers.","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/50642308/webdriverexception-unknown-error-devtoolsactiveport-file-doesnt-exist-while-t","votes":390,"created_at":"2026-04-19T04:52:19.394739+00:00","updated_at":"2026-04-19T04:52:19.394739+00:00"}