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 | 10 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Difficult to run the script in selenium webdriver which contains HtmlUnitDriver

    Stack Overflow | 10 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

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