From 8ec092157fb7e410f8e988ad5ce065fbc2f0271d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 12 Jul 2022 11:30:55 +0200 Subject: [PATCH] Bug 30717: Fix selenium tests Error while executing command: element not interactable: Element is not reachable by keyboard at /usr/share/perl5/Selenium/Remote/Driver.pm line 411. --- t/db_dependent/selenium/basic_workflow.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/selenium/basic_workflow.t b/t/db_dependent/selenium/basic_workflow.t index 58d0fa3c85d..de44740828c 100755 --- a/t/db_dependent/selenium/basic_workflow.t +++ b/t/db_dependent/selenium/basic_workflow.t @@ -183,6 +183,7 @@ SKIP: { my $id = $input->get_attribute('id'); next unless $id =~ m|^tag_952_subfield|; + my $effective_input = $input; my $v; # FIXME This is based on default values @@ -201,6 +202,7 @@ SKIP: { $id =~ m|^tag_952_subfield_w| # replacementpricedate ) { $v = strftime("%Y-%m-%d", localtime); + $effective_input = $driver->find_element('//div[@id="subfield952w"]/input[@class="input_marceditor flatpickr-input"]'); } elsif ( $id =~ m|^tag_952_subfield_d| # dateaccessioned @@ -215,7 +217,7 @@ SKIP: { else { $v = 't_value_bib' . $biblionumber; } - $input->send_keys( $v ); + $effective_input->send_keys( $v ); } $driver->find_element('//input[@name="add_submit"]')->click; -- 2.25.1