Skip to content
Snippets Groups Projects
Commit f258c4da authored by Jörg Sachse's avatar Jörg Sachse
Browse files

adapt Selenium login mechanism to changes in Rosetta 6.1.0.0

parent 3ca36260
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment