7 use SGN::Test::WWW::WebDriver;
9 my $d = SGN::Test::WWW::WebDriver->new();
11 $d->get_ok('/search/stocks');
12 my $page_source = lc($d->driver()->get_page_source());
14 ok($page_source =~ /search accessions/, "Search page title presence");
16 ok($page_source =~ /project location/, "Search options present");
20 $d->find_element_ok("any_name", "id", "find any_name html input element")->send_keys("test_accession1");
22 $d->find_element("//select[\@id=\"stock_type_select\"]/option[text()='accession']", "xpath","select stock type")->click();
24 $d->find_element_ok("submit_stock_search", "id", "submit search")->click();
26 $d->find_element_ok("test_accession1", "partial_link_text", "verify search")->click();