Bug 26986: Prevent Selenium's StaleElementReferenceException
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 10 Nov 2020 10:37:55 +0000 (11:37 +0100)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Thu, 10 Dec 2020 14:02:26 +0000 (15:02 +0100)
commitb092a77025eee7dceb5402b650df2109bb6c1f84
tree87ae7e6f61f221bb1a11bcfd30f40472eb8791b1
parent0fdac36bbea4ae81ec838e91115ec3959a1dd4c7
Bug 26986: Prevent Selenium's StaleElementReferenceException

This is a follow-up bug for bug 26162

By finding the element before the click I hope to get the good element,
even if the page changed in the meanwhile.

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 836d9a38727859f06902a7be6790592431fe812e)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
(cherry picked from commit b0af61fdc77e089e57525627fcb8e8eecd4be42c)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
t/lib/Selenium.pm