From addbff779ca6e5be867c83e9c0d03e5f82ad821c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 25 Jun 2018 16:48:21 -0300 Subject: [PATCH] Bug 20921: Fix opac_auth for selenium Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens --- t/lib/Selenium.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/t/lib/Selenium.pm b/t/lib/Selenium.pm index 645cd8dd35..26c9a27a17 100644 --- a/t/lib/Selenium.pm +++ b/t/lib/Selenium.pm @@ -79,12 +79,11 @@ sub opac_auth { $login ||= $self->login; $password ||= $self->password; - my $mainpage = $self->base_url . 'opac-main.pl'; + my $mainpage = $self->opac_base_url . 'opac-main.pl'; $self->driver->get($mainpage); $self->fill_form( { userid => $login, password => $password } ); - my $login_button = $self->driver->find_element('//input[@id="submit"]'); - $login_button->submit(); + $self->submit_form; } sub fill_form { -- 2.39.5