]> 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)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Sun, 20 Sep 2020 12:48:24 +0000 (14:48 +0200)
commitfba2a862a3085efc79340b4f9c29908b9926a160
tree242ea15780c9aa97c81ec6eedcdf0df5bc0fc566
parent4a3f41a6182b5eb4081493cec86ed6a2448a50f5
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>
(cherry picked from commit ce8a819b5fb77a8df59f131b4af96e24106bd32e)

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
(cherry picked from commit 0a127a78e9de3771b8418b123eed6815f2745304)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
t/lib/Selenium.pm