Closed runephilosof-abtion closed 7 months ago
If you are running tests on a system that needs a specific DISPLAY then you have to tell it geckodriver via the environment variable. And as it looks like your system doesn't define one. There is nothing that we can fix in geckodriver.
@whimboo I don't understand why you think it cannot be fixed in geckodriver. I ask for geckodriver to respond with a different error message. Does that request belong to some dependency of geckodriver?
As what I've already said in my last comment geckodriver doesn't know about the window manager etc setup of the system it runs on. It's just a proxy that converts HTTP requests to internal socket messages for Firefox. Starting Firefox will fail in such a situation and it's Firefox that is crashing due to a missing display, but not geckodriver.
System
Testcase
From https://github.com/SeleniumHQ/selenium/issues/12779#issuecomment-1797966160
Selenium maintainer says it should be fixed in geckodriver: https://github.com/SeleniumHQ/selenium/issues/12779#issuecomment-1798331115
Expected