org.openqa.selenium.StaleElementReferenceException

The element reference is stale. Either the element is no longer attached to the DOM or the page has been refreshed. For documentation on this error, please visit: http://seleniumhq.org/exceptions/stale_element_reference.html Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:29:23 -0700' System info: host: 'ip-192-168-20-112.ec2.internal', ip: '192.168.20.112', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.4', java.version: '1.8.0_102' Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{raisesAccessibilityExceptions=false, loggingPrefs={driver=ALL, browser=ALL}, appBuildId=20160922113459, platform=MAC, requestOrigins={name=webdriverio, version=4.2.16, url=http://webdriver.io}, specificationLevel=0, acceptSslCerts=false, processId=60826, browserVersion=49.0.1, platformVersion=15.4.0, XULappId={ec8030f7-c20a-464f-9b0e-13a3a9e97384}, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, maxInstances=4, platformName=darwin, rotatable=false, firefoxOptions={args=[], profile=UEsDBBQACAgIAEGJRkkAAAAAAAAAAAAAAAAHAAAAdXNlci5qc51X227jNhB971cUfmqBmsht20X7lGZToMCiKdYI9pGgqJHFmCJZXqz47zukpPgmUU6eYikz5FzOmTkKDiw1FqqfFoXVLT4RxypIv4Vak4bJllkgoFghoVz88mPFpIOf//gh7D1L5tHGaOujSw1M+rp7Jmi0FXzGX4Fvtd2Q2ntDTC1cvVvGfxvm3FKCWvsaHW8+fTp2GwK2wEr8U4IH7qH8S1jn7zEWLgHdvA2n4eoG83qlvLa6Aeq4FcZTGxT1ookut1fjF3lWOILlUE/qQWoH49kM1qVuldSsxLsUW8fC1rr9XoNaYbVipcbdDQZlvIuX0UaXTM7UHrZea+kIWKst18ppeVju8/SdWCutsGoNNAXYVXp0+VwcOCfQymvEggUXsG4VBkq5Za7O+0qhNkQbUBRePVjFZGzmuxFUxbZ+C2r8shaK0ootPjPOAdsZFGbuEA6Ug/VutBJvnRLOSLaD8vH6avWPRuTE1t6NG+Or8kl9Fwr7666viMCL9P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command_id=1, locationContextEnabled=true, takesElementScreenshot=true, device=desktop, firefox_profile=UEsDBBQACAAIAEGpRkkAAAAAAAAAA...}] Session ID: 6b95569d-c5c8-a747-a76d-6ff79863630e

Solutions on the web27

  • via GitHub by si-mikey
    , 9 months ago
    : '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:29:23 -0700' System info: host: 'ip-192-168-20-112.ec2.internal', ip: '192.168.20.112', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.4', java.version: '1.8.0_102' Driver info
  • : '2.48.2', revision: '41bccdd', time: '2015-10-09 19:59:12' System info: host: 'Yashs-MBP-2', ip: '192.168.1.200', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.3', java.version: '1.8.0_74' Driver info
  • did not provide any stacktrace information) Command duration or timeout: 42 milliseconds For documentation on this error, please visit: http://seleniumhq.org/exceptions/stale_element_reference.html Build info: version: '2.53.0', revision: '35ae25b
  • Stack trace

    • org.openqa.selenium.StaleElementReferenceException: The element reference is stale. Either the element is no longer attached to the DOM or the page has been refreshed. For documentation on this error, please visit: http://seleniumhq.org/exceptions/stale_element_reference.html Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:29:23 -0700' System info: host: 'ip-192-168-20-112.ec2.internal', ip: '192.168.20.112', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.4', java.version: '1.8.0_102' Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{raisesAccessibilityExceptions=false, loggingPrefs={driver=ALL, browser=ALL}, appBuildId=20160922113459, platform=MAC, requestOrigins={name=webdriverio, version=4.2.16, url=http://webdriver.io}, specificationLevel=0, acceptSslCerts=false, processId=60826, browserVersion=49.0.1, platformVersion=15.4.0, XULappId={ec8030f7-c20a-464f-9b0e-13a3a9e97384}, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, maxInstances=4, platformName=darwin, rotatable=false, firefoxOptions={args=[], profile=UEsDBBQACAgIAEGJRkkAAAAAAAAAAAAAAAA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8m/ewLPCQRmed2TZ04XNaSbIaQMjcliCmfDRYQ8nj39Tbnhc4R/jY5WzNFs2A2nS+F2XMx2HF4OUw5Z4cOMyuptJyZ+r1rn5eqBFnJJqe21EG6GkAqTLXVE+3gQB6NAd+Ilkehv9dAJz9GTj+Q9prBElaqQ4tF9acAuo8RLUZ1SKjvipsvUSx6aNlYZkk/UAO9eFpdOUVcDCjVeA9986fbXn28QfKeQIqwsRSwNmxESo59rH/1MQ9as48v++yErHQ7mUMr4ATcfTrpCyFhEJda1lxNi6bjULkoVT1HnZvp5cNsQ5EeWEB04Thr8iEkcW8QPH7x2SnfH7yTkLH7tzAjv/QyUlQumE517Sfw/UEsHCOXwzdoxBAAAYw8AAFBLAQIUABQACAgIAEGJRknl8M3aMQQAAGMPAAAHAAAAAAAAAAAAAAAAAAAAAAB1c2VyLmpzUEsFBgAAAAABAAEANQAAAGYEAAAAAA==}, handlesAlerts=true, version=49.0.1, proxy={}, command_id=1, locationContextEnabled=true, takesElementScreenshot=true, device=desktop, firefox_profile=UEsDBBQACAAIAEGpRkkAAAAAAAAAA...}] Session ID: 6b95569d-c5c8-a747-a76d-6ff79863630e at sun.reflect.GeneratedConstructorAccessor12.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:126) at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:93) at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:42) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:163) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:602) at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:284) at org.openqa.selenium.remote.RemoteWebElement.getText(RemoteWebElement.java:168) at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement$1.invoke(EventFiringWebDriver.java:331) at com.sun.proxy.$Proxy5.getText(Unknown Source) at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.getText(EventFiringWebDriver.java:381) at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.openqa.selenium.remote.server.KnownElements$1.invoke(KnownElements.java:64) at com.sun.proxy.$Proxy6.getText(Unknown Source) at org.openqa.selenium.remote.server.handler.GetElementText.call(GetElementText.java:30) at org.openqa.selenium.remote.server.handler.GetElementText.call(GetElementText.java:22) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    2 times, 2 months ago
    Once, 3 days ago
    Unknown user
    Once, 2 years ago