org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"xpath","selector":"html/body/div[17]/div/div/div/div/div[1]/div/div/ul/li[16]/a/span/span"} Command duration or timeout: 33 milliseconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.52.0', revision: '4c2593c', time: '2016-02-11 19:03:33' System info: host: 'RLaptop', ip: '192.168.xx.x', os.name: 'Windows 10', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_73' Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=45.0.1, platform=WINDOWS, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: c5781a63-5d20-4a55-9cd6-7cd70aa38165 *** Element info: {Using=xpath, value=html/body/div[17]/div/div/div/div/div[1]/div/div/ul/li[16]/a/span/span}

Stack Overflow | suffa | 7 months ago
  1. 0

    How to resolve logging out of Facebook with Selenium using Java

    Stack Overflow | 7 months ago | suffa
    org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"xpath","selector":"html/body/div[17]/div/div/div/div/div[1]/div/div/ul/li[16]/a/span/span"} Command duration or timeout: 33 milliseconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.52.0', revision: '4c2593c', time: '2016-02-11 19:03:33' System info: host: 'RLaptop', ip: '192.168.xx.x', os.name: 'Windows 10', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_73' Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=45.0.1, platform=WINDOWS, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: c5781a63-5d20-4a55-9cd6-7cd70aa38165 *** Element info: {Using=xpath, value=html/body/div[17]/div/div/div/div/div[1]/div/div/ul/li[16]/a/span/span}
  2. 0

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

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

    Find an element by xpath w.r.t to other element - gadgetsytecnologia.com

    gadgetsytecnologia.com | 1 year ago
    org.openqa.selenium.NoSuchElementException: no such element
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Cannot get some search results on amazon book search

    Stack Overflow | 2 months ago | Praveena Namuduri
    org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"./div/div/div/div[2]/div[3]/div/div[2]/a/span"} (Session info: chrome=52.0.2743.116) (Driver info: chromedriver=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Mac OS X 10.10.5 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 24 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: 'Ravis-MacBook-Air.local', ip: '172.28.128.1', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10.5', java.version: '1.8.0_65' Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={chromedriverVersion=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4), userDataDir=/var/folders/bw/q875mfdx59lb3scyk4ncp4f80000gp/T/.org.chromium.Chromium.eKb0F4}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=52.0.2743.116, platform=MAC, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: ba98db8d22efa0ab9c066166cb129416 *** Element info: {Using=xpath, value=./div/div/div/div[2]/div[3]/div/div[2]/a/span}
  6. 0

    While running Selenium webdriver script I am getting below error

    Stack Overflow | 3 years ago | user3460883
    org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"xpath","selector":".//*[@id=':hf']/div/div"} Command duration or timeout: 2.29 seconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.21.0', revision: '16552', time: '2012-04-11 19:09:00' System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_05' Driver info: driver.version: RemoteWebDriver

  1. pnaranja 1 times, last 5 months ago
10 unregistered visitors
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 element: {"method":"xpath","selector":"html/body/div[17]/div/div/div/div/div[1]/div/div/ul/li[16]/a/span/span"} Command duration or timeout: 33 milliseconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '2.52.0', revision: '4c2593c', time: '2016-02-11 19:03:33' System info: host: 'RLaptop', ip: '192.168.xx.x', os.name: 'Windows 10', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_73' Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=45.0.1, platform=WINDOWS, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: c5781a63-5d20-4a55-9cd6-7cd70aa38165 *** Element info: {Using=xpath, value=html/body/div[17]/div/div/div/div/div[1]/div/div/ul/li[16]/a/span/span}

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
  2. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    4. java.lang.reflect.Constructor.newInstance(Unknown Source)
    4 frames
  3. Selenium
    RemoteWebElement.findElementByXPath
    1. org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
    2. org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
    3. org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
    4. org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:327)
    5. org.openqa.selenium.remote.RemoteWebElement.findElement(RemoteWebElement.java:198)
    6. org.openqa.selenium.remote.RemoteWebElement.findElementByXPath(RemoteWebElement.java:295)
    6 frames
  4. selenium-api
    By$ByXPath.findElement
    1. org.openqa.selenium.By$ByXPath.findElement(By.java:361)
    1 frame
  5. Selenium
    RemoteWebElement.findElement
    1. org.openqa.selenium.remote.RemoteWebElement.findElement(RemoteWebElement.java:194)
    1 frame
  6. Testing
    GetFacebookTitle.test3
    1. Testing.GetFacebookTitle.test3(GetFacebookTitle.java:47)
    1 frame
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  8. TestNG
    RemoteTestNG.main
    1. org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
    2. org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
    3. org.testng.internal.Invoker.invokeTestMethod(Invoker.java:816)
    4. org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1124)
    5. org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
    6. org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
    7. org.testng.TestRunner.privateRun(TestRunner.java:774)
    8. org.testng.TestRunner.run(TestRunner.java:624)
    9. org.testng.SuiteRunner.runTest(SuiteRunner.java:359)
    10. org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354)
    11. org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)
    12. org.testng.SuiteRunner.run(SuiteRunner.java:261)
    13. org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    14. org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    15. org.testng.TestNG.runSuitesSequentially(TestNG.java:1215)
    16. org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
    17. org.testng.TestNG.run(TestNG.java:1048)
    18. org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126)
    19. org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:137)
    20. org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:58)
    20 frames