Subject: | shutDown command no longer works with current SeleniumRC - patch attached |
Seems like shutDown was only an internal Selenium command that got
removed. shutDownSeleniumServer is the one that should have been used.
The attached patch fixes this problem, so the Selenium server gets shut
down properly again and repeating test runs don't fail anymore due to a
Selenium server already running.
Subject: | Test-WWW-Selenium-Catalyst-shutDownSeleniumServer.diff |
diff -Naur Test-WWW-Selenium-Catalyst-0.06/lib/Test/WWW/Selenium/Catalyst.pm Test-WWW-Selenium-Catalyst-0.06.patched//lib/Test/WWW/Selenium/Catalyst.pm
--- Test-WWW-Selenium-Catalyst-0.06/lib/Test/WWW/Selenium/Catalyst.pm 2009-08-26 18:10:11.000000000 +0200
+++ Test-WWW-Selenium-Catalyst-0.06.patched//lib/Test/WWW/Selenium/Catalyst.pm 2009-10-27 15:03:44.326420219 +0100
@@ -270,7 +270,7 @@
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;