-
Notifications
You must be signed in to change notification settings - Fork 211
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
FluentList leads to StaleElementReferenceException #832
Comments
Hi fedotxxl. Do you use the latest version? If yes can you please share piece of code which triggers it? |
I use version Here is sample code:
When I call |
Failing test case which exposes the root cause (to be placed within @Test
void shouldReturnActualValueFromTheInternalChangedList() {
goTo(ELEMENT_REPLACE_URL);
await().until(rowsListPage.getComponentsList()).size(2);
assertThat(rowsListPage.getComponentsList().size()).isEqualTo(2);
await().until(rowsListPage.getComponentsList()).size(4);
assertThat(rowsListPage.getComponentsList().size()).isEqualTo(4);
} The issue seems to be that FluentList maintains internal list state (within This leads to the following failing use cases:
For a list of affected use cases see the methods implemented in the interface |
Hello. I've got a table with rows.
My test does the following:
On step 3 I've got
org.openqa.selenium.StaleElementReferenceException
exception. I tried to usereset()
with no luck. How can I reset fluent list state?The text was updated successfully, but these errors were encountered: