Не удалось найти селектор xpath в Jenkins - PullRequest
0 голосов
/ 10 ноября 2018

Информация об элементе: {Using=xpath, value=//*[contains(@d,'M232.5 30.5 L 243.5 30.5 243.5 173.5 232.5 173.5Z')]}, не удалось найти содержимое в jenkins, но он мог найти тот же элемент во время работы в локальной сети. Версия 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')]}
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...