[英]Selenium Not able to run Firefox browser from Jenkins
I tried running Automated test using selenium on firefox through jenkins on Ubuntu Machine but not able to run it. 我尝试通过Ubuntu计算机上的jenkins在firefox上使用硒运行自动测试,但无法运行它。 But the same code is running without failure using Eclipse.
但是,使用Eclipse可以运行相同的代码而不会失败。 I am running it as maven project.
我将其作为Maven项目运行。
Getting following error- 得到以下错误-
"[INFO] Running TestSuite
1524549883598 geckodriver INFO geckodriver 0.20.0
1524549883615 geckodriver INFO Listening on 127.0.0.1:14395
1524549883939 mozrunner::runner INFO Running command: "/usr/lib/firefox/firefox" "-marionette" "-profile" "/tmp/rust_mozprofile.78vmBc1aqdpF"
1524549883941 geckodriver::marionette TRACE connection attempt 0/600
ExceptionHandler::GenerateDump cloned child 6290
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...
1524549884041 geckodriver::marionette TRACE connection attempt 1/600
1524549884141 webdriver::server DEBUG <- 500 Internal Server Error {"value":{"error":"unknown error","message":"Process unexpectedly closed with status signal","stacktrace":""}}
Msg Process unexpectedly closed with status signal
Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:26:55.152Z'
System info: host: 'Unknown', ip: 'Unknown', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-96-generic', java.version: '1.8.0_131'
Driver info: driver.version: FirefoxDriver
remote stacktrace:
Firefox version -60.0b10 Selenium -3.11.0 Using Gecko driver" Firefox版本-60.0b10 Selenium -3.11.0使用Gecko驱动程序”
This error message... 此错误消息...
1524549884141 webdriver::server DEBUG <- 500 Internal Server Error {"value":{"error":"unknown error","message":"Process unexpectedly closed with status signal","stacktrace":""}}
...implies that the marionette wasn't able to initiate an active connection with the WebClient ie Firefox browser. ...暗示木偶无法启动与WebClient(即Firefox浏览器)的活动连接。
Your main issue is the version compatibility between the binaries you are using as follows : 您的主要问题是所使用的二进制文件之间的版本兼容性 ,如下所示:
So there is a clear mismatch between the JDK v8u131 , Selenium Client v3.11.0 and GeckoDriver v0.20.0 . 因此, JDK v8u131 , Selenium Client v3.11.0和GeckoDriver v0.20.0之间显然不匹配。
Test
as a non-root user. Test
。 driver.quit()
within tearDown(){}
method to close & destroy the WebDriver and Web Client instances gracefully. tearDown(){}
方法内调用driver.quit()
,以优雅地关闭和破坏WebDriver和Web Client实例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.