org.openqa.selenium.StaleElementReferenceException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • If statement Loop Break in selenium code
    via Stack Overflow by TCC
    ,
  • Java selenium questions
    via Stack Overflow by Macklin guy
    ,
  • {noformat} Element is no longer attached to the DOM System info: os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.27.10-grsec-xxxx-grs-ipv4-64', java.version: '1.6.0_25' Driver info: driver.version: RemoteWebDriver Stacktrace org.openqa.selenium.StaleElementReferenceException: Element is no longer attached to the DOM System info: os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.27.10-grsec-xxxx-grs-ipv4-64', java.version: '1.6.0_25' Driver info: driver.version: RemoteWebDriver at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:131) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:105) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:395) at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:195) at org.openqa.selenium.remote.RemoteWebElement.getText(RemoteWebElement.java:105) at org.xwiki.test.ui.framework.elements.RegisterPage.validationFailureMessagesInclude(RegisterPage.java:112) at org.xwiki.test.ui.RegisterTest.testRegisterEmptyPassword(RegisterTest.java:132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:24) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.junit.extensions.cpsuite.ClasspathSuite.run(ClasspathSuite.java:194) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103) at $Proxy0.invoke(Unknown Source) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69) Caused by: org.openqa.selenium.remote.ErrorHandler$UnknownServerException: Element is no longer attached to the DOM System info: os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.27.10-grsec-xxxx-grs-ipv4-64', java.version: '1.6.0_25' Driver info: driver.version: unknown at <anonymous class>.WebDriverError(file:///tmp/anonymous1478603787594974079webdriver-profile/extensions/fxdriver@googlecode.com/resource/modules/utils.js:7081) at <anonymous class>.<anonymous method>(file:///tmp/anonymous1478603787594974079webdriver-profile/extensions/fxdriver@googlecode.com/resource/modules/utils.js:7195) at <anonymous class>.<anonymous method>(file:///tmp/anonymous1478603787594974079webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js -> file:///tmp/anonymous1478603787594974079webdriver-profile/extensions/fxdriver@googlecode.com/components/wrappedElement.js:125) at <anonymous class>.<anonymous method>(file:///tmp/anonymous1478603787594974079webdriver-profile/extensions/fxdriver@googlecode.com/resource/modules/atoms.js:277) at <anonymous class>.<anonymous method>(file:///tmp/anonymous1478603787594974079webdriver-profile/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:299) at <anonymous class>.<anonymous method>(file:///tmp/anonymous1478603787594974079webdriver-profile/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:313) at <anonymous class>.<anonymous method>(file:///tmp/anonymous1478603787594974079webdriver-profile/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:190) {noformat}
    via by CalebJamesDeLisle,
    • 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}] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:191) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554) at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:268) at org.openqa.selenium.remote.RemoteWebElement.getAttribute(RemoteWebElement.java:123) at com.util.browser.browser_type.getobjects(browser_type.java:225) at com.util.browser.browser.main(browser.java:57)

    Users with the same issue

    PilleoPilleo
    1 times, last one,
    raytestraytest
    2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,