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)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Wed, 9 Dec 2020 20:27:13 +0000 (20:27 +0000)
commitb0af61fdc77e089e57525627fcb8e8eecd4be42c
treebc0d7136e1d8a85702c9b3d2299b93ed32f9ff51
parentc56972ddd3b9fc703a9123fc02140079957b1671
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>
t/lib/Selenium.pm