]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 13 Aug 2020 18:25:26 +0000 (18:25 +0000)
commitce8a819b5fb77a8df59f131b4af96e24106bd32e
treeecb9945bebdd794c394b20a05aeef1337c832e58
parentd8ead7bac5642ba1d98691d1fd48c266403451df
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>
(cherry picked from commit 70ff3bafa05a30944962747953c70bb8dc3c1ab8)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
t/db_dependent/selenium/administration_tasks.t
t/lib/Selenium.pm