Selenium crashing with selenium.common.exceptions.WebDriverException: Message: newSession

后端 未结 3 2332
说谎
说谎 2021-02-19 22:43

OS: Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-1066-aws x86_64)

Selenium Version: selenium==3.6.0

Browser: Mozilla Firefox 63.0

Geckodriver version : geckodr

3条回答
  •  名媛妹妹
    2021-02-19 23:40

    I fixed the issue by updating the selenium python package and using the latest geckodriver.

    Thanks @fzbd for all your help.

    Additional context -

    Refer to the compatibility chart here - https://firefox-source-docs.mozilla.org/testing/geckodriver/Support.html#supported-platforms

    update selenium :

     pip install -U selenium
    

    update geckodriver (choose the correct version for your needs based on the above compatibility chart)

    Check the versions for all components -

    firefox -v
    geckodriver -V
    pip freeze | grep selenium
    

提交回复
热议问题