org.openqa.selenium.NoSuchElementException: {"errorMessage":"Unable to find element with id 'DC_Login_UserName_Text'","request":{"headers": {"Accept":"application/json, image/png","Connection":"Keep-Alive","Content-Length":"47","Content-Type":"application/json; charset=utf-8","Host":"localhost:44783"},"httpVersion":"1.1","method":"POST","post":"{\"using\":\"id\",\"value\":\"DC_Login_UserName_Text\"}","url":"/element","urlParsed":{"anchor":"","query":"","file":"element","directory":"/","path":"/element","relative":"/element","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/element","queryKey":{},"chunks":["element"]},"urlOriginal":"/session/f0d9c420-7fcf-11e6-aeb2-b7cbd59c9ab0/element"}} Driver info: org.openqa.selenium.phantomjs.PhantomJSDriver Capabilities [{platform=XP, acceptSslCerts=false, javascriptEnabled=true, browserName=phantomjs, rotatable=false, driverVersion=1.1.0, locationContextEnabled=false, version=1.9.7, cssSelectorsEnabled=true, databaseEnabled=false, handlesAlerts=false, browserConnectionEnabled=false, webStorageEnabled=false, nativeEvents=true, proxy={proxyType=direct}, applicationCacheEnabled=false, driverName=ghostdriver, takesScreenshot=true}]

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    phantomJs is unable to find the dom elements with vaadin and selenium

    Stack Overflow | 7 months ago | Suneil Narasimhamurthy
    org.openqa.selenium.NoSuchElementException: {"errorMessage":"Unable to find element with id 'DC_Login_UserName_Text'","request":{"headers": {"Accept":"application/json, image/png","Connection":"Keep-Alive","Content-Length":"47","Content-Type":"application/json; charset=utf-8","Host":"localhost:44783"},"httpVersion":"1.1","method":"POST","post":"{\"using\":\"id\",\"value\":\"DC_Login_UserName_Text\"}","url":"/element","urlParsed":{"anchor":"","query":"","file":"element","directory":"/","path":"/element","relative":"/element","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/element","queryKey":{},"chunks":["element"]},"urlOriginal":"/session/f0d9c420-7fcf-11e6-aeb2-b7cbd59c9ab0/element"}} Driver info: org.openqa.selenium.phantomjs.PhantomJSDriver Capabilities [{platform=XP, acceptSslCerts=false, javascriptEnabled=true, browserName=phantomjs, rotatable=false, driverVersion=1.1.0, locationContextEnabled=false, version=1.9.7, cssSelectorsEnabled=true, databaseEnabled=false, handlesAlerts=false, browserConnectionEnabled=false, webStorageEnabled=false, nativeEvents=true, proxy={proxyType=direct}, applicationCacheEnabled=false, driverName=ghostdriver, takesScreenshot=true}]
  2. 0

    Issue playing back steps in Interpreter

    GitHub | 3 years ago | Zarkonnen
    org.openqa.selenium.NoSuchElementException: Unable to find element with css selector == #CheckBox10 > label (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 15.10 seconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.41.0', revision: '3192d8a', time: '2014-03-27 17:17:32' System info: host: 'l77485', ip: '10.23.14.17', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_45' Session ID: eab2a29c-b79d-4415-8fba-1c02e6a60fda Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false, enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=9, ie.usePerProcessProxy=false, cssSelectorsEnabled=true, ignoreProtectedModeSettings=false, requireWindowFocus=false, handlesAlerts=true, initialBrowserUrl=http://localhost:11952/, ie.forceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}]
  3. 0

    Selenium script doesnot wait long enough for the time defined in explicit wait

    Stack Overflow | 3 weeks ago | iAutomate
    org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"xpath","selector":".//*[@id='1']"} Command duration or timeout: 41 milliseconds 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 16:57:40' System info: host: 'Vinay-PC', ip: '192.168.1.2', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_101' Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=45.0.2, platform=WINDOWS, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: d40fc001-400c-473b-8213-078e641b3c7f *** Element info: {Using=xpath, value=.//*[@id='1']}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Find an element by xpath w.r.t to other element

    Stack Overflow | 3 years ago | Neethu Madhuri
    org.openqa.selenium.NoSuchElementException: no such element
  6. 0

    dragAndDropBy() function Encountering Exception

    Software Quality Assurance & Testing | 3 years ago | Pratibha
    org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"id","selector":"draggable"} Command duration or timeout: 34 milliseconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.38.0', revision: 'bd32d4e', time: '2013-12-05 16:16:40' System info: host: 'MyLappy', ip: '14.99.107.172', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0' Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=28.0, platform=XP, browserConnectionEnabled=true, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: 7dc1eb06-deb9-42e3-9994-2e7a3a41517f

    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

      {"errorMessage":"Unable to find element with id 'DC_Login_UserName_Text'","request":{"headers": {"Accept":"application/json, image/png","Connection":"Keep-Alive","Content-Length":"47","Content-Type":"application/json; charset=utf-8","Host":"localhost:44783"},"httpVersion":"1.1","method":"POST","post":"{\"using\":\"id\",\"value\":\"DC_Login_UserName_Text\"}","url":"/element","urlParsed":{"anchor":"","query":"","file":"element","directory":"/","path":"/element","relative":"/element","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/element","queryKey":{},"chunks":["element"]},"urlOriginal":"/session/f0d9c420-7fcf-11e6-aeb2-b7cbd59c9ab0/element"}} Driver info: org.openqa.selenium.phantomjs.PhantomJSDriver Capabilities [{platform=XP, acceptSslCerts=false, javascriptEnabled=true, browserName=phantomjs, rotatable=false, driverVersion=1.1.0, locationContextEnabled=false, version=1.9.7, cssSelectorsEnabled=true, databaseEnabled=false, handlesAlerts=false, browserConnectionEnabled=false, webStorageEnabled=false, nativeEvents=true, proxy={proxyType=direct}, applicationCacheEnabled=false, driverName=ghostdriver, takesScreenshot=true}]

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
    2. Java RT
      NativeConstructorAccessorImpl.newInstance0
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      1 frame