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

Stack Overflow | sandeep kumar | 5 months ago
  1. 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
  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

    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
  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

    Scripts for Selenium Chrome and htmlUnit

    Stack Overflow | 1 month ago | Kevin Lee
    org.openqa.selenium.NoSuchElementException: Returned node was not an HTML element For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.45.0', revision: '32a636c', time: '2015-03-05 22:01:35' System info: host: 'FGS-CIT-2758', ip: '192.168.200.201', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_40' Driver info: driver.version: HtmlUnitDriver

    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

      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

      at org.openqa.selenium.htmlunit.HtmlUnitDriver.findElementByCssSelector()
    2. selenium-htmlunit-driver
      HtmlUnitDriver.findElementByClassName
      1. org.openqa.selenium.htmlunit.HtmlUnitDriver.findElementByCssSelector(HtmlUnitDriver.java:1060)
      2. org.openqa.selenium.htmlunit.HtmlUnitDriver.findElementByClassName(HtmlUnitDriver.java:1032)
      2 frames
    3. selenium-api
      By$ByClassName.findElement
      1. org.openqa.selenium.By$ByClassName.findElement(By.java:391)
      1 frame
    4. selenium-htmlunit-driver
      HtmlUnitDriver.findElement
      1. org.openqa.selenium.htmlunit.HtmlUnitDriver$5.call(HtmlUnitDriver.java:1725)
      2. org.openqa.selenium.htmlunit.HtmlUnitDriver$5.call(HtmlUnitDriver.java:1721)
      3. org.openqa.selenium.htmlunit.HtmlUnitDriver.implicitlyWaitFor(HtmlUnitDriver.java:1367)
      4. org.openqa.selenium.htmlunit.HtmlUnitDriver.findElement(HtmlUnitDriver.java:1721)
      5. org.openqa.selenium.htmlunit.HtmlUnitDriver.findElement(HtmlUnitDriver.java:606)
      5 frames
    5. com.digitalmqc.automation
      SampleUnitDriver.main
      1. com.digitalmqc.automation.action.SampleUnitDriver.main(SampleUnitDriver.java:16)
      1 frame