Jenkins抛出错误实例化firefox,与Maven一起正常工作

时间:2018-01-05 18:01:16

标签: selenium jenkins selenium-webdriver mozilla geckodriver

1515175026602   mozrunner::runner   INFO    Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "-marionette" "-profile" "C:\\Windows\\TEMP\\rust_mozprofile.MX9tmRHWAJFL"
1515175027227   Marionette  INFO    Enabled via --marionette
###!!! [Parent][MessageChannel] Error: (msgtype=0x240057,name=PContent::Msg_SetPluginList) Channel error: cannot send/recv


###!!! [Parent][MessageChannel] Error: (msgtype=0x24004C,name=PContent::Msg_GMPsChanged) Channel error: cannot send/recv


###!!! [Parent][MessageChannel] Error: (msgtype=0x15008F,name=PBrowser::Msg_UpdateNativeWindowHandle) Channel error: cannot send/recv


###!!! [Parent][MessageChannel] Error: (msgtype=0x150083,name=PBrowser::Msg_Destroy) Channel error: cannot send/recv

A content process crashed and MOZ_CRASHREPORTER_SHUTDOWN is set, shutting down

2 个答案:

答案 0 :(得分:1)

通过在命令提示符下使用jenkins.war安装Jenkins来修复此问题。之前我已经安装了.exe文件,就像通常的Windows软件一样。

.exe将其作为Windows服务和.war作为java可执行文件

运行" java -jar jenkins.war"在cmd上,配置并运行构建,将解决问题

答案 1 :(得分:0)

此问题可能与代码中设置的不受支持的安全首选项有关,而在FF v62中设置此首选项时,我在mac中遇到了此问题。和壁虎0.24

                        profile.setPreference("security.sandbox.content.level", 5);