Bug 24801: (follow-up) Display all the libraries - Selenium fix

We have it failing now for the delete link..
14:26:50 selenium_1   | 05:26:50.451 WARN - Exception: Unable to locate element: {"method":"xpath","selector":"//*[@id=\"delete_library_UT_BC\"]"}

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2020-04-08 08:47:49 +02:00 committed by Martin Renvoize
parent 2633796e1f
commit bad8c7089a
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -136,6 +136,9 @@ SKIP: {
); # Edit
$s->fill_form( { branchname => 'another branchname' } );
$s->submit_form;
# Select "Show all" in the datatable "Show x entries" dropdown list to make sure our library is not hidden
$driver->find_element('//select[@name="libraries_length"]/option[@value="-1"]')->click;
$s->click(
{
id => 'delete_library_'.$branchcode,