From b5a9d4540aa7d06b34359b7d21173d96ca015552 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 12 Jul 2022 11:30:55 +0200 Subject: [PATCH] Bug 31139: Fix basic_workflow.t Error while executing command: element not interactable: Element is not reachable by keyboard at /usr/share/perl5/Selenium/Remote/Driver.pm line 411. Not sure if it's coming from bug 30717 or not. git bisect told me it was the culprit but we released 22.05 and it seems that we got basic_workflow.t green since then. Signed-off-by: David Nind Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 083769164b9af4ab27db7dd16f60af960b3dbf28) Signed-off-by: Lucas Gass (cherry picked from commit 0a0a459a0da7bc5cf72960c92f1f8569a8328e6c) Signed-off-by: Arthur Suzuki --- 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 095c47c954..a4cfc1b577 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.20.1