为什么Selenium / Jenkins报告两个不同的ChromeDriver版本?

时间:2019-01-14 18:37:56

标签: selenium jenkins

当我通过Jenkins运行Selenium作业时,我看到了两个不同的ChromeDriver版本报告:

期望

17:00:29.375 [TestNG-test=wsc tests-3] WARN  c.r.a.p.c.c.CreditApplicationPage - Unable to locate field: {} 
org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//form[@name='creditAppDynaValidatorActionForm']//span[@class='message']"}
  (Session info: chrome=71.0.3578.98)
  (Driver info: chromedriver=2.45.615279 (12b89733300bd268cff3b78fc76cb8f3a7cc44e5),platform=Linux 3.10.0-693.11.1.el7.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'jenkins-slave-4368551bbabf', ip: '172.17.45.11', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-693.11.1.el7.x86_64', java.version: '1.8.0_152'

Driver info: chromedriver=2.45.615279对我来说很有意义。这是我们安装的驱动程序版本。

备用

org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//form[@name='creditAppDynaValidatorActionForm']//span[@class='message']"}
  (Session info: chrome=71.0.3578.98)
  (Driver info: chromedriver=70.0.3538.67 (9ab0cfab84ded083718d3a4ff830726efd38869f),platform=Windows NT 10.0.17134 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'jenkins-slave-4368551bbabf', ip: '172.17.45.11', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-693.11.1.el7.x86_64', java.version: '1.8.0_152'

Driver info: chromedriver=70.0.3538.67是什么意思;为什么在这里显示? 70.0版本与2.45版本相差甚远。

1 个答案:

答案 0 :(得分:0)

一个同事向我指出了答案:

selenium-grid

报告的驱动程序版本是通过Selenium Grid运行的WebDriver版本。