实际上我试图通过selenium在远程debian服务器上运行无头浏览器.我在服务器上安装了firefox 46.0.1,我使用的是selenium 2.53.1版本.
每当我试图运行给定的测试时,我得到以下错误.
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
Run Code Online (Sandbox Code Playgroud)
我在我的代码中实例化了firefox驱动程序,如下所示:
saDriver = new FirefoxDriver();
Run Code Online (Sandbox Code Playgroud)
有人可以帮忙吗?