-3
我试图在java中运行硒脚本。但每次我试图创建Firefox驱动程序我得到这个错误无法运行java无头硒
[WebDriverException: Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:
(process:32000): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
(firefox:32000): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Error: no display specified
关于我的问题的一些背景。
- 我试图运行硒与Ubuntu 14.0.4在AWS EC2
- 我已经尝试安装XVFB因此火狐可以在无头的模式下运行,并与一些参考运行XVFB(https://medium.com/@griggheo/running-selenium-webdriver-tests-using-firefox-headless-mode-on-ubuntu-d32500bb6af2#.u0hrlct41,https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c)
- 我可以在我的Java脚本硒“org.seleniumhq.selenium”%“硒的Java”%“2.53.1”没有任何问题,运行硒Python脚本
- 我使用这个硒SBT,
任何人都可以帮助我运行使用Java的无头硒?