Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi I am using Test-WWW-Selenium-Catalyst-0.05_99 version. Following the doc to do simple start I get following error:
Odd number of elements in hash assignment at /usr/local/share/perl/5.1 +0.0/Test/WWW/Selenium/Catalyst.pm line 168. 1..0 # Skip requires Test::WWW::Selenium::Catalyst You can connect to your server at http://localhost:3000 Can't start selenium: Error requesting http://localhost:4444/selenium- +server/driver/: 500 Internal Server Error
this is what I have.
use Test::WWW::Selenium::Catalyst 'ky','java -jar downloads/selenium-r +emote-control-1.0-beta-2/selenium-server-1.0-beta-2/selenium-server.j +ar'; my $sel = Test::WWW::Selenium::Catalyst->start; $sel->open_ok("/"); $sel->is_text_present_ok("Welcome to"); $sel->stop();
doc ref.
use Test::WWW::Selenium::Catalyst 'MyApp', 'command line to selenium +'; use Test::More tests => 2; my $sel = Test::WWW::Selenium::Catalyst->start; $sel->open_ok('/'); $sel->is_text_present_ok('Welcome to MyApp');

Replies are listed 'Best First'.
Re: Selenium-Catalyst-0.05_99 simple connection error.
by zwon (Abbot) on May 16, 2009 at 18:31 UTC

    As noted in the documentation this is a test release. It depends on some details of your system and without knowing them it is hard to help you with that problem. What OS are you using? Do you see SeleniumRC process when you loading Test::WWW::Selenium::Catalyst?