I was about to develop some selenium tests (running with headless firefox), when the following error popped up in the server.log
when I was about to acquire the webdriver via this command:
driver = webdriver.Firefox(firefox_profile = profile, log_path = logfile)
Here is the error:
1518520162032 geckodriver::marionette INFO Starting browser /usr/bin/firefox with args ["-marionette"]
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
Error: cannot open display: :1137
I do not recall to have changed anything. It just worked before like a hundred times. How to fix that error???
- python 2.7.12
- Firefox: Mozilla Firefox 57.0.3
- geckodriver: 0.19.1
- selenium: 3.8.0