X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FTest%2FWWW%2FSelenium%2FCatalyst.pm;h=6da63e47b4a89c74a9625b4e823e5ef0e9f506e2;hb=3a859d5cc5754cf48dc06a4af98364e8fbb08619;hp=05babb3fda10de102f05e898de0d3a9a961afc08;hpb=7278917ed1df7aacd36ffce046461b36ef34559b;p=catagits%2FTest-WWW-Selenium-Catalyst.git diff --git a/lib/Test/WWW/Selenium/Catalyst.pm b/lib/Test/WWW/Selenium/Catalyst.pm index 05babb3..6da63e4 100644 --- a/lib/Test/WWW/Selenium/Catalyst.pm +++ b/lib/Test/WWW/Selenium/Catalyst.pm @@ -102,13 +102,13 @@ and it's killed when your test exits. If wish to manage a selenium server 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 @@ -270,7 +270,7 @@ END { 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;