From f258c4da8b2eabe7da80695ac7927c453f60e92a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <Joerg.Sachse@slub-dresden.de> Date: Mon, 9 Mar 2020 11:16:20 +0100 Subject: [PATCH] adapt Selenium login mechanism to changes in Rosetta 6.1.0.0 --- .../add_dnx_mappings/add_dnx_mappings.pl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/deploy_checkit_tiff/add_dnx_mappings/add_dnx_mappings.pl b/deploy_checkit_tiff/add_dnx_mappings/add_dnx_mappings.pl index 26c725d..cf3fb91 100644 --- a/deploy_checkit_tiff/add_dnx_mappings/add_dnx_mappings.pl +++ b/deploy_checkit_tiff/add_dnx_mappings/add_dnx_mappings.pl @@ -81,16 +81,18 @@ $driver->set_timeout('script', 1000); sub login { print "login:\n"; - $driver->get("http://$host:8991/pds?func=load-login&lang=en&langOptions=en.English&institution=&institute=INS_SLUB&calling_system=dps"); - my $ele_institute = $driver->find_element("institute", "id"); + #$driver->get("http://$host:8991/pds?func=load-login&lang=en&langOptions=en.English&institution=&institute=INS_SLUB&calling_system=dps"); + $driver->get("http://sdvrosetta-test.slub-dresden.de:1801/mng?auth=local"); + #my $ele_institute = $driver->find_element("institute", "id"); + my $ele_institute = $driver->find_element("selectInstitution", "id"); p( $ele_institute); print "inst select found\n"; $driver->find_child_element( $ele_institute, - "./*[text()='$institution']", "xpath" + "./option[\@value='$institution']", "xpath" )->click; - $driver->find_element("username", "id")->clear; - $driver->find_element("username", "id")->send_keys("$user"); + $driver->find_element("userName", "id")->clear; + $driver->find_element("userName", "id")->send_keys("$user"); $driver->find_element("password", "id")->clear; $driver->find_element("password", "id")->send_keys("$passwd"); $driver->find_element("Login", "name")->click; -- GitLab