yourself, (for instance you wish to start up a server once and run a number of
tests against it) pass C<-no_selenium_server> to import:
- use Test::WWW::Selenium 'MyApp'
+ use Test::WWW::Selenium 'MyApp',
-no_selenium_server => 1
Along a similar vein you can also pass command line arguments to the selenium
server via C<-selenium_args>:
- use Test::WWW::Selenium 'MyApp'
+ use Test::WWW::Selenium 'MyApp',
-selenium_args => "-singleWindow -port 4445"
=head2 sel_pid
diag("Shutting down Selenium Server $sel_pid") if $DEBUG;
$www_selenium->stop();
# This can fail if a page hasn't been requested yet.
- eval { $www_selenium->do_command('shutDown') };
+ eval { $www_selenium->do_command('shutDownSeleniumServer') };
undef $www_selenium;
}
diag("Killing Selenium Server $sel_pid") if $DEBUG;