bug fix. Now it tests correctly if either of the tests evaluate to false or not
[sgn.git] / selenium / sequencing / sol100.t
blob4ac3741b010026670b2aef6cf95ab61f8150d69e
1 use warnings;
2 use strict;
3 use Test::WWW::Selenium;
4 use Test::More tests=>4;
6 my $sel = Test::WWW::Selenium->new( host => "localhost",
7                               port => 4444,
8                               browser => "*firefox",
9                               browser_url => "http://sgn.localhost.localdomain/sequencing/sol100.pl",
10                                     default_names => 1,
11                                     
12                             );
15 $sel->start;
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");
24 sleep(2);
26 my $body = $sel->get_body_text();
28 like($body, qr/Solanum/, "Solanum string presence test");
29 $sel->stop;