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}

  1. 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}
  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

    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}
  6. 0

    Selenium Webdriver - Java, PageObject, PageFactory -

    Stack Overflow | 1 year ago | puvi
    org.openqa.selenium.firefox.FirefoxDriver

  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

    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}

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
  2. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    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. Unknown
    Amazon_book_price_number.main
    1. Amazon_book_price_number.main(Amazon_book_price_number.java:36)
    1 frame