WebDriverException: unknown error: DevToolsActivePort file doesn't exist while trying to initiate Chrome Browser

前端 未结 29 3888
旧巷少年郎
旧巷少年郎 2020-11-21 07:11

I am trying to launch chrome with an URL, the browser launches and it does nothing after that.

I am seeing the below error after 1 minute:

Unable to         


        
29条回答
  •  没有蜡笔的小新
    2020-11-21 07:27

    In my case it happened when I've tried to use my default user profile:

    ...
    options.addArguments("user-data-dir=D:\\MyHomeDirectory\\Google\\Chrome\\User Data");
    ...
    

    This triggered chrome to reuse processes already running in background, in such a way, that process started by chromedriver.exe was simply ended.

    Resolution: kill all chrome.exe processes running in background.

提交回复
热议问题