if($www_selenium){
diag("Shutting down Selenium Server $sel_pid") if $DEBUG;
$www_selenium->stop();
- $www_selenium->do_command('shutDown');
+ # This can fail if a page hasn't been requested yet.
+ eval { $www_selenium->do_command('shutDown') };
undef $www_selenium;
}
diag("Killing Selenium Server $sel_pid") if $DEBUG;
my $have_apps =
can_run('java') &&
- ( can_run('firefox') || can_run('firefox-bin') );
+ ( can_run('firefox') || can_run('firefox-bin') ) ||
+ $ENV{WE_HAVE_SELENIUM};
SKIP: {
unless ($have_apps) {
} );
};
- skip $@, 80 if $@;
+ skip $@, 79 if $@;
$sel->open_ok('/');
$sel->text_is("link=Click here", "Click here");