org.openqa.selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document (Session info: chrome=43.0.2357.130) (Driver info: chromedriver=2.15.322455 (ae8db840dac8d0c453355d3d922c91adfb61df8f),platform=Mac OS X 10.10.2 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 5 milliseconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/stale_element_reference.html Build info: version: '2.45.0', revision: '5017cb8', time: '2015-02-26 23:59:50' System info: host: 'the-internet.lan', ip: '192.168.1.139', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10.2', java.version: '1.8.0_25' Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={userDataDir=/var/folders/hd/qyrygrsn157_44bl1m8t3dxw0000gq/T/.org.chromium.Chromium.8sEiw9}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, version=43.0.2357.130, platform=MAC, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: 896a2dfd27f99dbceeca55d4a9dda44d

GitHub | shamus | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Question about elementFinder#isPresent and stale element exceptions

    GitHub | 2 years ago | shamus
    org.openqa.selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document (Session info: chrome=43.0.2357.130) (Driver info: chromedriver=2.15.322455 (ae8db840dac8d0c453355d3d922c91adfb61df8f),platform=Mac OS X 10.10.2 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 5 milliseconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/stale_element_reference.html Build info: version: '2.45.0', revision: '5017cb8', time: '2015-02-26 23:59:50' System info: host: 'the-internet.lan', ip: '192.168.1.139', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10.2', java.version: '1.8.0_25' Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={userDataDir=/var/folders/hd/qyrygrsn157_44bl1m8t3dxw0000gq/T/.org.chromium.Chromium.8sEiw9}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, version=43.0.2357.130, platform=MAC, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: 896a2dfd27f99dbceeca55d4a9dda44d
  2. 0

    Issue 7229 in selenium: Unable to click elements on pages with polymer's platform.js shim (stale element error)

    Google Groups | 3 years ago | sele...@googlecode.com
    org.openqa.selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document Capabilities:[{applicationCacheEnabled=false, rotatable=false, chrome={userDataDir=/var/folders/4k/2w0rsfyx217_89pdbdns1s4c0000gn/T/.org.chromium.Chromium.uqV88r}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, version=34.0.1847.131, platform=MAC, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Stack:
  3. 0

    Using Java, How to handle "Stale Element Exception" in WebDriver?

    Stack Overflow | 4 years ago | user2617199
    org.openqa.selenium.StaleElementReferenceException: Element is no longer valid (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 15 milliseconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/stale_element_reference.html Build info: version: '2.35.0', revision: '8df0c6b', time: '2013-08-12 15:43:19' System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_25' Session ID: 750c270f-ce8d-4d46-b6fb-6944183dbbd9 Driver info: org.openqa.selenium.ie.InternetExplorerDriver Capabilities [{platform=WINDOWS, elementScrollBehavior=0, javascriptEnabled=true, enablePersistentHover=true, ignoreZoomSetting=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=9, cssSelectorsEnabled=true, ignoreProtectedModeSettings=true, requireWindowFocus=false, handlesAlerts=true, initialBrowserUrl=, nativeEvents=true, browserAttachTimeout=0, takesScreenshot=true}]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    selenium-users - [selenium-users] Re: java.lang.NoSuchMethodError: org.apache.http.conn.scheme.Scheme.<init> - msg#01380 - Recent Discussion OSDir.com

    osdir.com | 2 years ago
    org.openqa.selenium.StaleElementReferenceException: Element belongs to a different frame than the current one - switch to its containing frame to use itCommand duration or timeout: 0 millisecondsFor documentation on this error, please visit: http://seleniumhq.org/exceptions/stale_element_reference.htmlBuild info: version: '2.25.0', revision: '17482', time: '2012-07-18 21:09:54'System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_29'Driver info: driver.version: RemoteWebDriverSession ID: 512c8686-5a85-4c0d-a5c7-2025d18a2dd2
  6. 0

    Java selenium questions

    Stack Overflow | 10 months ago | Macklin guy
    org.openqa.selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document (Session info: chrome=51.0.2704.103) (Driver info: chromedriver=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Windows NT 10.0 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 9 milliseconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/stale_element_reference.html Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46' System info: host: 'DESKTOP-VOA61U9', ip: '192.168.0.2', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_73' Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={chromedriverVersion=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4), userDataDir=C:\Users\Skid\AppData\Local\Temp\scoped_dir20756_575}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=51.0.2704.103, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: b48d6cc33021d97d8a72976ad4d033b7

  1. raytest 6 times, last 2 months ago
1 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.StaleElementReferenceException

    stale element reference: element is not attached to the page document (Session info: chrome=43.0.2357.130) (Driver info: chromedriver=2.15.322455 (ae8db840dac8d0c453355d3d922c91adfb61df8f),platform=Mac OS X 10.10.2 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 5 milliseconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/stale_element_reference.html Build info: version: '2.45.0', revision: '5017cb8', time: '2015-02-26 23:59:50' System info: host: 'the-internet.lan', ip: '192.168.1.139', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10.2', java.version: '1.8.0_25' Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={userDataDir=/var/folders/hd/qyrygrsn157_44bl1m8t3dxw0000gq/T/.org.chromium.Chromium.8sEiw9}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, version=43.0.2357.130, platform=MAC, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: 896a2dfd27f99dbceeca55d4a9dda44d

    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:408)
    4 frames
  3. Selenium
    RemoteWebElement.isEnabled
    1. org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204)
    2. org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156)
    3. org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599)
    4. org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:268)
    5. org.openqa.selenium.remote.RemoteWebElement.isEnabled(RemoteWebElement.java:142)
    5 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:483)
    3 frames
  5. selenium-support
    EventFiringWebDriver$EventFiringWebElement$1.invoke
    1. org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement$1.invoke(EventFiringWebDriver.java:331)
    1 frame
  6. com.sun.proxy
    $Proxy3.isEnabled
    1. com.sun.proxy.$Proxy3.isEnabled(Unknown Source)
    1 frame
  7. selenium-support
    EventFiringWebDriver$EventFiringWebElement.isEnabled
    1. org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.isEnabled(EventFiringWebDriver.java:377)
    1 frame
  8. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:483)
    3 frames
  9. selenium-server
    KnownElements$1.invoke
    1. org.openqa.selenium.remote.server.KnownElements$1.invoke(KnownElements.java:63)
    1 frame
  10. com.sun.proxy
    $Proxy2.isEnabled
    1. com.sun.proxy.$Proxy2.isEnabled(Unknown Source)
    1 frame
  11. selenium-server
    GetElementEnabled.call
    1. org.openqa.selenium.remote.server.handler.GetElementEnabled.call(GetElementEnabled.java:30)
    2. org.openqa.selenium.remote.server.handler.GetElementEnabled.call(GetElementEnabled.java:1)
    2 frames
  12. Java RT
    FutureTask.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    1 frame
  13. selenium-server
    DefaultSession$1.run
    1. org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:168)
    1 frame
  14. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames