org.openqa.selenium.NoSuchElementException: Element not found or does not exist. 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: 'host-1', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.2.0-35-generic', java.version: '1.8.0_101' Driver info: driver.version: unknown

GitHub | jonyt | 3 months ago
  1. 0

    NoSuchElement exception when mocking response

    GitHub | 3 months ago | jonyt
    org.openqa.selenium.NoSuchElementException: Element not found or does not exist. 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: 'host-1', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.2.0-35-generic', java.version: '1.8.0_101' Driver info: driver.version: unknown
  2. 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
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Difficult to run the script in selenium webdriver which contains HtmlUnitDriver

    Stack Overflow | 5 months ago | sandeep kumar
    org.openqa.selenium.NoSuchElementException: Returned node was not a DOM element 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: 'user-PC', ip: '192.168.1.52', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_51' Driver info: driver.version: SampleUnitDriver
  6. 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

    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

      Element not found or does not exist. 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: 'host-1', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.2.0-35-generic', java.version: '1.8.0_101' Driver info: driver.version: unknown

      at com.machinepublishers.jbrowserdriver.ElementServer.validate()
    2. com.machinepublishers.jbrowserdriver
      AppThread$Runner.run
      1. com.machinepublishers.jbrowserdriver.ElementServer.validate(ElementServer.java:202)
      2. com.machinepublishers.jbrowserdriver.ElementServer.access$000(ElementServer.java:62)
      3. com.machinepublishers.jbrowserdriver.ElementServer$1.perform(ElementServer.java:138)
      4. com.machinepublishers.jbrowserdriver.AppThread$Runner.run(AppThread.java:94)
      4 frames
    3. com.sun.javafx
      PlatformImpl.lambda$null$173
      1. com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
      1 frame
    4. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    5. com.sun.javafx
      PlatformImpl.lambda$runLater$174
      1. com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
      1 frame
    6. com.machinepublishers.glass
      RunnableProcessor.run
      1. com.machinepublishers.glass.ui.monocle.RunnableProcessor.runLoop(RunnableProcessor.java:94)
      2. com.machinepublishers.glass.ui.monocle.RunnableProcessor.run(RunnableProcessor.java:53)
      2 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame