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

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

    I ran into the same issue running Chrome via Behat/Mink and Selenium in a Docker container. After some fiddling, I arrived at the following behat.yml which supplies the switches mentioned above. Note that all of them were required for me to get it running successfully.

    default:
        extensions:
            Behat\MinkExtension:
                base_url: https://my.app/
                default_session: selenium2
                selenium2:
                    browser: chrome
                    capabilities:
                        extra_capabilities:
                            chromeOptions:
                                args:
                                    - "headless"
                                    - "no-sandbox"
                                    - "disable-dev-shm-usage"
    

提交回复
热议问题