replace smiley face with [Loading...]
[sgn.git] / t / selenium2 / search / stock.t
blobdafd23138bebfdf0ea74ec8708885614c96e2518
2 use strict;
4 use lib 't/lib';
6 use Test::More;
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");
18 sleep(2);
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();
25 sleep(5);
26 $d->find_element_ok("test_accession1", "partial_link_text", "verify search")->click();
28 $d->driver->quit();
29 done_testing();