I have the following configuration:
Raspberry Pi2
with StretchPython 2.7
with pip installedFirefox 52.9.0
(from apt-get install firefox-esr)geckodriver 0.17.0
(from https://github.com/mozilla/geckodriver/releases/download/v0.17.0/geckodriver-v0.17.0-arm7hf.tar.gz), copied to /usr/local/binSelenium 3.4.0
So according to https://firefox-source-docs.mozilla.org/testing/geckodriver/geckodriver/Support.html, this should work. However, running this simple python script:
from pyvirtualdisplay import Display
from selenium import webdriver
display = Display(visible=0, size=(1024, 768))
display.start()
driver = webdriver.Firefox()
driver.get('http://www.google.com/')
print browser.title
driver.quit()
display.stop()
returns the error:
Service geckodriver unexpectedly exited. Status code was: -11
I tried many things like update Selenium/geckodriver to latest releases, tried some releases in between (Selenium 3.0.2, Geckodriver 0.11.1 as stated in Selenium Firefox webdriver results in error: Service geckodriver unexpectedly exited. Status code was: 2) but still same error -11 (crash).
Any idea or working configuration? Thanks, Jean