在詹金斯中找不到xpath选择器

时间:2018-11-10 09:48:13

标签: selenium jenkins xpath

元素信息:{Using=xpath, value=//*[contains(@d,'M232.5 30.5 L 243.5 30.5 243.5 173.5 232.5 173.5Z')]},无法在jenkins中找到包含,但在本地运行时可以找到相同的元素。 本地环境中的Jenkins版本

也可以在下面的控制台中找到詹金斯的日志

Tests run: 6, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 57.891 sec <<< FAILURE! - in RunCukesTest

然后所有子趋势图应显示在下面的同一页上

Time elapsed: 0.012 sec  <<< ERROR!
org.openqa.selenium.NoSuchElementException: 
no such element: Unable to locate element: {"method":"xpath","selector":"//*[contains(@d,'M232.5 30.5 L 243.5 30.5 243.5 173.5 232.5 173.5Z')]"}
  (Session info: chrome=70.0.3538.77)
  (Driver info: chromedriver=2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Windows NT 10.0.16299 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 32 milliseconds
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: '2.45.0', revision: '5017cb8e7ca8e37638dc3091b2440b90a1d8686f', time: '2015-02-27 09:10:26'
System info: host: 'N-20HEPF135EGA', ip: '10.143.87.246', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '10.0.1'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome={chromedriverVersion=2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb), userDataDir=C:\WINDOWS\TEMP\scoped_dir17604_21797}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=70.0.3538.77, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=false, acceptInsecureCerts=false, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true, setWindowRect=true, unexpectedAlertBehaviour=}]
Session ID: 53a3276a85707fa3f1d018d54545f96c
*** Element info: {Using=xpath, value=//*[contains(@d,'M232.5 30.5 L 243.5 30.5 243.5 173.5 232.5 173.5Z')]}

场景:所有订阅者趋势

Time elapsed: 0.012 sec  <<< ERROR!
org.openqa.selenium.NoSuchElementException: 
no such element: Unable to locate element: {"method":"xpath","selector":"//*[contains(@d,'M232.5 30.5 L 243.5 30.5 243.5 173.5 232.5 173.5Z')]"}
  (Session info: chrome=70.0.3538.77)
  (Driver info: chromedriver=2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Windows NT 10.0.16299 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 32 milliseconds
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: '2.45.0', revision: '5017cb8e7ca8e37638dc3091b2440b90a1d8686f', time: '2015-02-27 09:10:26'
System info: host: 'N-20HEPF135EGA', ip: '10.143.87.246', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '10.0.1'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome={chromedriverVersion=2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb), userDataDir=C:\WINDOWS\TEMP\scoped_dir17604_21797}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=70.0.3538.77, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=false, acceptInsecureCerts=false, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true, setWindowRect=true, unexpectedAlertBehaviour=}]
Session ID: 53a3276a85707fa3f1d018d54545f96c
*** Element info: {Using=xpath, value=//*[contains(@d,'M232.5 30.5 L 243.5 30.5 243.5 173.5 232.5 173.5Z')]}

0 个答案:

没有答案