7 use SGN::Test::WWW::WebDriver;
9 my $d = SGN::Test::WWW::WebDriver->new();
11 $d->login_as("submitter");
13 $d->get_ok("/about/index.pl", "get root url test");
17 my $out = $d->find_element_ok("lists_link", "name", "find lists_link")->click();
21 print "Adding new list...\n";
23 $d->find_element_ok("add_list_input", "id", "find add list input");
25 my $add_list_input = $d->find_element_ok("add_list_input", "id", "find add list input test");
29 $add_list_input->send_keys("new_test_list_transform");
33 $d->find_element_ok("add_list_button", "id", "find add list button test")->click();
35 $d->find_element_ok("view_list_new_test_list_transform", "id", "view list test")->click();
39 $d->find_element_ok("dialog_add_list_item", "id", "add test list")->send_keys("test_accession1\ntest_accession2\ntest_accession3_synonym1\n");
43 $d->find_element_ok("dialog_add_list_item_button", "id", "find dialog_add_list_item_button test")->click();
45 print "Close list content dialog...\n";
49 my $button = $d->find_element_ok("close_list_item_dialog", "id", "find close_list_item_dialog button test");
51 $button->click() if ($button);
53 print "Delete test list...\n";
55 my $delete_link = $d->find_element_ok("delete_list_new_test_list_transform", "id", "find delete test list button");
57 $delete_link->click() if $delete_link;
61 my $text = $d->driver->get_alert_text();
63 $d->accept_alert_ok();
67 $d->accept_alert_ok();
69 print "Deleted the list\n";
71 $d->find_element_ok("close_list_dialog_button", "id", "find close dialog button")->click();