其實我試圖通過硒在遠程debian服務器上運行無頭瀏覽器。我在服務器上安裝了firefox 46.0.1,我使用的是硒2.53.1版本。獲取GDK_BACKEND不匹配debian中的可用顯示錯誤
每當我嘗試運行給定的測試時,我得到以下錯誤。
org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:
Error: GDK_BACKEND does not match available displays
我已經實例化的Firefox司機在我的代碼是這樣的:
saDriver = new FirefoxDriver();
誰能幫助?
http://stackoverflow.com/questions/6183276/how-do-i-run-selenium-in-xvfb – hyades