Bug 30952: Fix selenium/basic_workflow.t

Error while executing command: no such element: Unable to locate element: //*[@id="circ_returns_checkin"]/div[2]/div[1]/div[2]/button at /usr/share/perl5/Selenium/Remote/Driver.pm line 411.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2022-10-25 12:24:22 +02:00 committed by Tomas Cohen Arazi
parent 0dc43ccf73
commit 1090ebed09
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -259,7 +259,7 @@ SKIP: {
for my $biblionumber ( @biblionumbers ) {
$driver->get($base_url."/circ/returns.pl");
$driver->find_element('//input[@id="barcode"]')->send_keys('t_value_bib'.$biblionumber);
$driver->find_element('//*[@id="circ_returns_checkin"]/div[2]/div[1]/div[2]/button')->click;
$driver->find_element('//*[@id="circ_returns_checkin"]//button[@type="submit"]')->click;
like( $driver->get_title(), qr(Check in test biblio \d+) );
}