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

前端 未结 29 3443
旧巷少年郎
旧巷少年郎 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:18

    We were having the same issues on our jenkins slaves (linux machine) and tried all the options above.

    The only thing helped is setting the argument

    chrome_options.add_argument('--headless')
    

    But when we investigated further, noticed that XVFB screen doesn't started property and thats causing this error. After we fix XVFB screen, it resolved the issue.

提交回复
热议问题