必需:我尝试在新的CentOS 7 minimal上运行无头硒(使用PHPUnit)。
问题:我似乎正确安装了所有内容,但是firefox没有启动,我的selenium网络驱动程序卡在14:45:31.646 INFO - Launching Firefox...
。使用firefox命令,我得到了以下输出
[admin@EE ~]$ /usr/bin/Xvfb :1 -screen 0 1024x768x24 &
[1] 11932
[admin@EE ~]$ export DISPLAY=:1
[admin@EE ~]$ firefox
firefox:11936): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Xlib: extension "RANDR" missing on display ":1".
Fontconfig warning: ignoring UTF-8: not a valid region tag
console.error:
[CustomizableUI]
Custom widget with id loop-button does not return a valid node
console.error:
[CustomizableUI]
Custom widget with id loop-button does not return a valid node
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
Selenium网络驱动程序卡在04:22:53.835 INFO - Launching Firefox...
有人可以建议为什么selenium无法识别Firefox?
修改
评论:您当前的区域设置是什么?
locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE=UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=