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 26c725da052cc2756d26a18b9b290d9858054f1c..cf3fb91fd0b578b4fef835f3277632c6467d326e 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;