From 1090ebed09459196241284e299496a1e2247eb99 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 25 Oct 2022 12:24:22 +0200 Subject: [PATCH] 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 --- t/db_dependent/selenium/basic_workflow.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/selenium/basic_workflow.t b/t/db_dependent/selenium/basic_workflow.t index 132fbc04d0..40434f3a75 100755 --- a/t/db_dependent/selenium/basic_workflow.t +++ b/t/db_dependent/selenium/basic_workflow.t @@ -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+) ); } -- 2.39.5