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

  • A+

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 : geckodriver-v0.19.0-linux64

Expected Behavior -

Create a new firefox browser and do some steps - parsing the website.

Actual Behavior -

Crashing with a log :- self.driver = webdriver.Firefox() File "/home/ubuntu/env/local/lib/python2.7/site-packages/selenium/webdriver/firefox/", line 154, in __init__ keep_alive=True) File "/home/ubuntu/env/local/lib/python2.7/site-packages/selenium/webdriver/remote/", line 151, in __init__ self.start_session(desired_capabilities, browser_profile) File "/home/ubuntu/env/local/lib/python2.7/site-packages/selenium/webdriver/remote/", line 240, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/home/ubuntu/env/local/lib/python2.7/site-packages/selenium/webdriver/remote/", line 308, in execute self.error_handler.check_response(response) File "/home/ubuntu/env/local/lib/python2.7/site-packages/selenium/webdriver/remote/", line 194, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: newSession

Has anyone faced this issue before and has a possible solution ?

UPDATE : Ran the following command : geckodriver --log trace & curl -d '{}'

Log :-


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

Thanks @fzbd for all your help.


:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: