From f02a58da9e4a6d8129e619ad805f0c86d9fad217 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 20 Oct 2021 10:24:30 +0200 Subject: [PATCH] Bug 19185: Fix language selection 'en' is in an optgroup Signed-off-by: Jonathan Druart --- t/lib/Selenium.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/lib/Selenium.pm b/t/lib/Selenium.pm index f9d098ad1b..8460d9d646 100644 --- a/t/lib/Selenium.pm +++ b/t/lib/Selenium.pm @@ -119,7 +119,7 @@ sub fill_form { if ( $tag eq 'input' ) { $self->driver->find_element('//input[@id="'.$id.'"]')->send_keys($value); } elsif ( $tag eq 'select' ) { - $self->driver->find_element('//select[@id="'.$id.'"]/option[@value="'.$value.'"]')->click; + $self->driver->find_element('//select[@id="'.$id.'"]//option[@value="'.$value.'"]')->click; } } } -- 2.39.5