3 use Test::WWW::Selenium;
4 use Test::More tests=>4;
6 my $sel = Test::WWW::Selenium->new( host => "localhost",
9 browser_url => "http://sgn.localhost.localdomain/sequencing/sol100.pl",
16 $sel->open_ok("http://sgn.localhost.localdomain/sequencing/sol100.pl");
18 #---- type "Solanum lycopersicum" in the "species" field ----#
19 $sel->type_ok("species","Solanum lycopersicum");
21 #---- click "update result" button on page ----#
22 $sel->click_ok("update_result");
26 my $body = $sel->get_body_text();
28 like($body, qr/Solanum/, "Solanum string presence test");