Bugzilla – Attachment 160511 Details for
Bug 35506
selenium/regressions.t is failing randomly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35506: Trying to fix selenium error: Can't call method "get_text"
Bug-35506-Trying-to-fix-selenium-error-Cant-call-m.patch (text/plain), 1.26 KB, created by
Jonathan Druart
on 2024-01-04 10:46:06 UTC
(
hide
)
Description:
Bug 35506: Trying to fix selenium error: Can't call method "get_text"
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-01-04 10:46:06 UTC
Size:
1.26 KB
patch
obsolete
>From a7b0b94cf3905293e2051d96d8293a6904f6828e Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 4 Jan 2024 11:44:43 +0100 >Subject: [PATCH] Bug 35506: Trying to fix selenium error: Can't call method > "get_text" > >Just a guess, we should wait for the ajax response before looking for >the element in the table. >--- > t/db_dependent/selenium/regressions.t | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/t/db_dependent/selenium/regressions.t b/t/db_dependent/selenium/regressions.t >index b9e9cb2edfd..f55db5dde6f 100755 >--- a/t/db_dependent/selenium/regressions.t >+++ b/t/db_dependent/selenium/regressions.t >@@ -54,6 +54,7 @@ my $AudioAlerts_value = C4::Context->preference('AudioAlerts'); > C4::Context->set_preference('AudioAlerts', '1'); > > our @cleanup; >+our $DT_delay = 1; > subtest 'OPAC - borrowernumber, branchcode and categorycode as html attributes' => sub { > plan tests => 3; > >@@ -317,6 +318,8 @@ subtest 'Encoding in session variables' => sub { > $driver->find_element('//a[@id="issues-table-load-now-button"]') > ->click; > >+ sleep $DT_delay && $s->wait_for_ajax; >+ > my @tds = $driver->find_elements( > '//table[@id="issues-table"]/tbody/tr[2]/td'); > >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35506
:
160511
|
160975
|
160976
|
161301
|
161302
|
161609
|
161630
|
161631