Closed jordiponsllaurado closed 8 years ago
I assume (from the selenium version 2.48.2
) you are using version0.10.0
, right?
Do you get this behavior consistently (all the time) at those elements?
The curious thing is that the Exception is thrown AFTER clicking the button, so the element is actually used.
How can you tell that?
Other than that, can you provide some minimal snippet where we can reproduce the problem?
Of the top of my head, I'd suggest you update the version (which updates the selenium version as well, which can impact supported browser versions).
We are using version 0.13.0 and we tried again using selenium version 2.52.0 with firefox (version 38.7.0 esr) and the error persists.
The html element is this: <a class="endor-List-item endor-List-item--interactive cq-siteadmin-admin-createpage coral-Link" href="/libs/wcm/core/content/sites/createpagewizard.html/content/geometrixx-outdoors/en/unittest/test">Create Page</a>
We perform the click using this: $(".cq-siteadmin-admin-createpage").click()
See the video attached to see what is happening, the element that is throwing an excepetion is this:
Attached gif:
Can you print the .size()
of the .click()
ed object, right before clicking it?
Maybe there is another element that becomes stale (e.g. it is removed) after the selection, but before the lib gets a chance to click it.
After doing .size()
we realised that for some reason there where more than one element with the same selector.
Thanks for your help and your time, I will close the issue.
After clicking on some button, the element is already clicked, but the method throws a StaleElementException. This is reproducible on only some buttons in the page, but not on all of them.
I use a css selector that is unique in order to ensure that I click on the correct button.
The curious thing is that the Exception is thrown AFTER clicking the button, so the element is actually used.
This is the Stacktrace: