org.openqa.selenium.NoSuchElementException: Unable to locate By.xpath: .//input[./@type = 'submit' or ./@type = 'reset' or ./@type = 'image' or ./@type = 'button'][((./@id = 'Build' or ./@name = 'Build' or contains(./@value, 'Build')) or contains(./@title, 'Build'))] | .//input[./@type = 'image'][contains(./@alt, 'Build')] | .//button[(((./@id = 'Build' or contains(./@value, 'Build')) or contains(normalize-space(.), 'Build')) or contains(./@title, 'Build'))] | .//input[./@type = 'image'][contains(./@alt, 'Build')] in http://172.17.0.1:55457/job/matrixJob/build?delay=0sec For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' System info: host: 'ip-172-18-64-125', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.2.0-42-generic', java.version: '1.8.0_40' Driver info: driver.version: unknown

Google Groups | valentina...@gmail.com (JIRA) | 3 months ago
  1. 0

    [JIRA] (JENKINS-37968) schedule build on parametrised jobs randomly fails when the form is not loaded before timeout

    Google Groups | 3 months ago | valentina...@gmail.com (JIRA)
    org.openqa.selenium.NoSuchElementException: Unable to locate By.xpath: .//input[./@type = 'submit' or ./@type = 'reset' or ./@type = 'image' or ./@type = 'button'][((./@id = 'Build' or ./@name = 'Build' or contains(./@value, 'Build')) or contains(./@title, 'Build'))] | .//input[./@type = 'image'][contains(./@alt, 'Build')] | .//button[(((./@id = 'Build' or contains(./@value, 'Build')) or contains(normalize-space(.), 'Build')) or contains(./@title, 'Build'))] | .//input[./@type = 'image'][contains(./@alt, 'Build')] in http://172.17.0.1:55457/job/matrixJob/build?delay=0sec For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' System info: host: 'ip-172-18-64-125', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.2.0-42-generic', java.version: '1.8.0_40' Driver info: driver.version: unknown
  2. 0

    Sometimes when executing `job.scheduleBuild()` on a parametrised job selenium test fails with {noformat} org.openqa.selenium.NoSuchElementException: Unable to locate By.xpath: .//input[./@type = 'submit' or ./@type = 'reset' or ./@type = 'image' or ./@type = 'button'][((./@id = 'Build' or ./@name = 'Build' or contains(./@value, 'Build')) or contains(./@title, 'Build'))] | .//input[./@type = 'image'][contains(./@alt, 'Build')] | .//button[(((./@id = 'Build' or contains(./@value, 'Build')) or contains(normalize-space(.), 'Build')) or contains(./@title, 'Build'))] | .//input[./@type = 'image'][contains(./@alt, 'Build')] in http://172.17.0.1:55457/job/matrixJob/build?delay=0sec For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' System info: host: 'ip-172-18-64-125', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.2.0-42-generic', java.version: '1.8.0_40' Driver info: driver.version: unknown at org.openqa.selenium.support.ui.FluentWait.timeoutException(FluentWait.java:292) at org.jenkinsci.test.acceptance.junit.Wait.timeoutException(Wait.java:143) at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:261) at org.jenkinsci.test.acceptance.junit.Wait.until(Wait.java:74) at org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl.find(CapybaraPortingLayerImpl.java:197) at org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl.clickButton(CapybaraPortingLayerImpl.java:88) at org.jenkinsci.test.acceptance.po.Job.scheduleBuild(Job.java:289) at org.jenkinsci.test.acceptance.po.Job.scheduleBuild(Job.java:273) at {noformat} Looks like after clicking on {{build with Paramters}} the form {{parameters}} take some time to be loaded, causing the exception before. It is reproducible launching subsequent builds for a parametrised job, something like {noformat} int i = 0; while (i < 100) { i = i + 1; try { job.scheduleBuild().shouldSucceed(); } catch (Exception e) { System.out.print("error"); } } {noformat}

    Jenkins JIRA | 3 months ago | valentina armenise
    org.openqa.selenium.NoSuchElementException: Unable to locate By.xpath: .//input[./@type = 'submit' or ./@type = 'reset' or ./@type = 'image' or ./@type = 'button'][((./@id = 'Build' or ./@name = 'Build' or contains(./@value, 'Build')) or contains(./@title, 'Build'))] | .//input[./@type = 'image'][contains(./@alt, 'Build')] | .//button[(((./@id = 'Build' or contains(./@value, 'Build')) or contains(normalize-space(.), 'Build')) or contains(./@title, 'Build'))] | .//input[./@type = 'image'][contains(./@alt, 'Build')] in http://172.17.0.1:55457/job/matrixJob/build?delay=0sec For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' System info: host: 'ip-172-18-64-125', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.2.0-42-generic', java.version: '1.8.0_40' Driver info: driver.version: unknown
  3. 0

    If multiple credentials providers are installed and applicable, the "add" button for credentials doesn't pop up a form right away - instead, there's a dropdown of providers to choose from. So in that scenario, a test that's trying to add credentials will fail like: {code} unableToConnectWrongCredentials(plugins.SshSlavesPluginTest) Time elapsed: 79.733 sec <<< ERROR! org.openqa.selenium.NoSuchElementException: Unable to locate By.xpath: //*[@id='credentials-dialog-form']//*[@path='/'] in http://127.0.0.1:49680/computer/createItem For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' System info: host: 'ip-10-216-229-216', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.2.0-30-generic', java.version: '1.8.0_40' Driver info: driver.version: unknown at org.openqa.selenium.support.ui.FluentWait.timeoutException(FluentWait.java:292) at org.jenkinsci.test.acceptance.junit.Wait.timeoutException(Wait.java:143) at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:261) at org.jenkinsci.test.acceptance.junit.Wait.until(Wait.java:74) at org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl.find(CapybaraPortingLayerImpl.java:177) at org.jenkinsci.test.acceptance.po.Control.resolve(Control.java:65) at org.jenkinsci.test.acceptance.po.Control.select(Control.java:222) at org.jenkinsci.test.acceptance.plugins.ssh_credentials.SshCredentialDialog$1.resolve(SshCredentialDialog.java:28) at org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl$Resolver.find(CapybaraPortingLayerImpl.java:421) at org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl.findCaption(CapybaraPortingLayerImpl.java:389) at org.jenkinsci.test.acceptance.plugins.ssh_credentials.SshCredentialDialog.select(SshCredentialDialog.java:25) at org.jenkinsci.test.acceptance.plugins.ssh_slaves.SshSlaveLauncher.pwdCredentials(SshSlaveLauncher.java:57) at plugins.SshSlavesPluginTest.unableToConnectWrongCredentials(SshSlavesPluginTest.java:85) {code}

    Jenkins JIRA | 6 months ago | Andrew Bayer
    org.openqa.selenium.NoSuchElementException: Unable to locate By.xpath: //*[@id='credentials-dialog-form']//*[@path='/'] in http://127.0.0.1:49680/computer/createItem For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' System info: host: 'ip-10-216-229-216', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.2.0-30-generic', java.version: '1.8.0_40' Driver info: driver.version: unknown
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    This doesn't seem to be the general Credentials 2.0.6 and later failures - it still fails after the fix for that is in. {code} org.openqa.selenium.NoSuchElementException: Unable to locate By.xpath: //*[@id='credentials-dialog-form']//*[@path='/'] in http://127.0.0.1:62507/computer/createItem For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' System info: host: 'ip-10-216-229-216', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.2.0-30-generic', java.version: '1.8.0_40' Driver info: driver.version: unknown at org.openqa.selenium.support.ui.FluentWait.timeoutException(FluentWait.java:292) at org.jenkinsci.test.acceptance.junit.Wait.timeoutException(Wait.java:143) at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:261) at org.jenkinsci.test.acceptance.junit.Wait.until(Wait.java:74) at org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl.find(CapybaraPortingLayerImpl.java:177) at org.jenkinsci.test.acceptance.po.Control.resolve(Control.java:64) at org.jenkinsci.test.acceptance.po.Control.select(Control.java:185) at org.jenkinsci.test.acceptance.plugins.ssh_credentials.SshCredentialDialog$1.resolve(SshCredentialDialog.java:28) at org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl$Resolver.find(CapybaraPortingLayerImpl.java:421) at org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl.findCaption(CapybaraPortingLayerImpl.java:389) at org.jenkinsci.test.acceptance.plugins.ssh_credentials.SshCredentialDialog.select(SshCredentialDialog.java:25) at org.jenkinsci.test.acceptance.docker.fixtures.XvncSlaveContainer.connect(XvncSlaveContainer.java:54) at plugins.XvncPluginTest.setUp(XvncPluginTest.java:31) {code}

    Jenkins JIRA | 6 months ago | Andrew Bayer
    org.openqa.selenium.NoSuchElementException: Unable to locate By.xpath: //*[@id='credentials-dialog-form']//*[@path='/'] in http://127.0.0.1:62507/computer/createItem For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' System info: host: 'ip-10-216-229-216', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.2.0-30-generic', java.version: '1.8.0_40' Driver info: driver.version: unknown
  6. 0

    [Firefox]Remote driver and Local driver behave not same

    GitHub | 4 months ago | HackToday
    org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"xpath","selector":"//button[contains(text(), \"??\")]"} Command duration or timeout: 10.02 seconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58' System info: host: '42422b778b8e', ip: '172.17.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-123.el7.x86_64', java.version: '1.8.0_03-Ubuntu' Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=45.0.2, platform=LINUX, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: d1765426-01ed-4d1e-82f1-a0871445bf6d *** Element info: {Using=xpath, value=//button[contains(text(), "??")]}

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.openqa.selenium.NoSuchElementException

      Unable to locate By.xpath: .//input[./@type = 'submit' or ./@type = 'reset' or ./@type = 'image' or ./@type = 'button'][((./@id = 'Build' or ./@name = 'Build' or contains(./@value, 'Build')) or contains(./@title, 'Build'))] | .//input[./@type = 'image'][contains(./@alt, 'Build')] | .//button[(((./@id = 'Build' or contains(./@value, 'Build')) or contains(normalize-space(.), 'Build')) or contains(./@title, 'Build'))] | .//input[./@type = 'image'][contains(./@alt, 'Build')] in http://172.17.0.1:55457/job/matrixJob/build?delay=0sec For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' System info: host: 'ip-172-18-64-125', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.2.0-42-generic', java.version: '1.8.0_40' Driver info: driver.version: unknown

      at org.openqa.selenium.support.ui.FluentWait.timeoutException()
    2. selenium-support
      FluentWait.timeoutException
      1. org.openqa.selenium.support.ui.FluentWait.timeoutException(FluentWait.java:292)
      1 frame
    3. org.jenkinsci.test
      Wait.timeoutException
      1. org.jenkinsci.test.acceptance.junit.Wait.timeoutException(Wait.java:143)
      1 frame
    4. selenium-support
      FluentWait.until
      1. org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:261)
      1 frame
    5. org.jenkinsci.test
      Job.scheduleBuild
      1. org.jenkinsci.test.acceptance.junit.Wait.until(Wait.java:74)
      2. org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl.find(CapybaraPortingLayerImpl.java:197)
      3. org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl.clickButton(CapybaraPortingLayerImpl.java:88)
      4. org.jenkinsci.test.acceptance.po.Job.scheduleBuild(Job.java:289)
      5. org.jenkinsci.test.acceptance.po.Job.scheduleBuild(Job.java:273)
      5 frames