Bug 19185: Fix language selection

'en' is in an optgroup

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2021-10-20 10:24:30 +02:00
parent cfccfcab02
commit f02a58da9e

View file

@ -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;
}
}
}