]> git.koha-community.org Git - koha.git/commit
Bug 26162: Wait for the table to be refreshed
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 10 Aug 2020 09:59:58 +0000 (11:59 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 10 Aug 2020 10:31:44 +0000 (12:31 +0200)
commit70ff3bafa05a30944962747953c70bb8dc3c1ab8
tree986b38d9487a98fcdf9607dd5bf6ce09d10e70e9
parent7b8664b5590cdffc2579bebc1fd6435fe236d879
Bug 26162: Wait for the table to be refreshed

The previous patch did not work as expected. We still got a
StaleElementReference exception.
But this time on
10:43:47 selenium_1   | Caused by: org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"xpath","selector":"//*[@id=\"branchname\"]"}
Because we found the one that existed on the page, not the one sent back
in AJAX.

The idea of this patch is to search for the "Showing 1 to X of Y entries" info and wait for X == Y

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/selenium/administration_tasks.t
t/lib/Selenium.pm