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

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

    I ran into this problem on Ubuntu 20 with Python Selenium after first downloading the chromedriver separately and then using sudo apt install chromium-browser Even though they were the same version this kept happening.

    My fix was to use the provided chrome driver that came with the repo package located at

    /snap/bin/chromium.chromedriver

    driver = webdriver.Chrome(chrome_options=options, executable_path='/snap/bin/chromium.chromedriver')
    

提交回复
热议问题