Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StaleElementReferenceException at Selector select method #174

Open
BelAn97 opened this issue Nov 17, 2017 · 1 comment
Open

StaleElementReferenceException at Selector select method #174

BelAn97 opened this issue Nov 17, 2017 · 1 comment

Comments

@BelAn97
Copy link
Contributor

BelAn97 commented Nov 17, 2017

If I try to select item before the page was fully update I got StaleElementReferenceException after timeout.

INFO: Select 'Quick' for Menu 'Nav Menu' (SearchPage.navMenu; ; cssSelector='#horizontalNav .embs-nav__item')

java.lang.RuntimeException: java.lang.AssertionError: Do action Select 'Quick' failed. Can't get result. Reason: java.lang.RuntimeException: java.lang.AssertionError: Do action Click on Element failed. Can't get result. Reason: org.openqa.selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document
(Session info: chrome=62.0.3202.94)
(Driver info: chromedriver=2.33.506120 (e3e53437346286c0bc2d2dc9aa4915ba81d9023f),platform=Windows NT 10.0.10586 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
For documentation on this error, please visit: http://seleniumhq.org/exceptions/stale_element_reference.html
Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:01:39.354Z'
System info: host: 'EPRUPETW6024', ip: '10.66.9.120', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_144'
Driver info: org.openqa.selenium.chrome.ChromeDriver
at com.epam.commons.Timer.wait(Timer.java:128)
at com.epam.commons.Timer.alwaysDoneAction(Timer.java:90)
at com.epam.jdi.uitests.web.selenium.elements.actions.ActionInvoker.doJAction(ActionInvoker.java:73)
at com.epam.jdi.uitests.web.selenium.elements.actions.ActionInvoker.doJAction(ActionInvoker.java:69)
at com.epam.jdi.uitests.web.selenium.elements.actions.ElementsActions.select(ElementsActions.java:151)
at com.epam.jdi.uitests.web.selenium.elements.complex.Selector.select(Selector.java:55)

@RomanIovlev
Copy link
Collaborator

RomanIovlev commented Jan 17, 2018

Need more info for reproduce. Maybe site example or steps to reproduce.
Please try latest version of framework

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants