7 use SGN::Test::WWW::WebDriver;
9 my $d = SGN::Test::WWW::WebDriver->new();
11 $d->login_as("submitter");
13 $d->get_ok('/breeders/trial/137');
17 my $out = $d->find_element_ok("lists_link", "name", "find lists_link")->click();
19 $d->find_element_ok("add_list_input", "id", "find add list input");
21 my $add_list_input = $d->find_element_ok("add_list_input", "id", "find add list input test");
25 $add_list_input->send_keys("new_test_list_datacollector");
29 $d->find_element_ok("add_list_button", "id", "find add list button test")->click();
33 $d->find_element_ok("view_list_new_test_list_datacollector", "id", "view list test")->click();
37 my $type_select = $d->find_element_ok("type_select", "id", "find list type");
39 $type_select->send_keys("traits");
43 $d->find_element_ok("dialog_add_list_item", "id", "add test list")->send_keys("dry matter content percentage|CO:0000092\nfresh root weight|CO:0000012\nfresh shoot weight measurement in kg|CO:0000016\nharvest index variable|CO:0000015\n");
48 $d->find_element_ok("dialog_add_list_item_button", "id", "find dialog_add_list_item_button test")->click();
50 my $button = $d->find_element_ok("close_list_item_dialog", "id", "find close_list_item_dialog button test");
56 $d->find_element_ok("close_list_dialog_button", "id", "find close dialog button")->click();
59 $d->get_ok('/breeders/trial/137');
63 my $create_DataCollector_link = $d->find_element_ok('create_DataCollector_link', 'id', "find create data collector spreadsheet link");
65 $create_DataCollector_link->click();
70 $d->find_element_ok('trait_list_list_select', 'id', "find list select select box")->send_keys('new_test_list_datacollector');
72 my $button = $d->find_element_ok('create_DataCollector_submit_button', 'id', "create");