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

I was just about to try Test::WWW::Selenium with Alien::SeleniumRC as suggested by Barbie here but I can't even get the example in the synopsis to work.
use Test::More tests => 1; use Test::WWW::Selenium; # Parameters are passed through to WWW::Selenium my $sel = Test::WWW::Selenium->new( host => "localhost", port => 4444, browser => "*firefox", browser_url => "http://www.google. +com", default_names => 1, ); # use special test wrappers around WWW::Selenium commands: $sel->open_ok("http://www.google.com");

When I run the test script it is stuck and in the browser (Firefox) I can see it was trying to access

http://www.google.com/selenium-server/core/RemoteRunner.html?sessionId +=718835&multiWindow=false&baseUrl=http%3A%2F%2Fwww.google.com&debugMo +de=false
and got 404.

So what am I doing wrong?

Update

OS: Ubuntu 7.10
Browser Firefox
Actual string in configuration is
browser => "*custom /usr/bin/firefox",

No proxy in my network that I am aware of, but there might be transparent proxies...
perl 5.8.8
Test::WWW::Selenium is up to date (1.14).
Alien::SeleniumRC is up to date (0.91).

Solution

The browser configuration need to be changed to:
browser => "*chrome /usr/lib/firefox/firefox-bin",

Replies are listed 'Best First'.
Re: Selenium example not working?
by Anonymous Monk on Mar 30, 2008 at 11:47 UTC
      You didn't google it.

      Maybe that's because google was giving him a 404. ;-)

Re: Selenium example not working?
by dragonchild (Archbishop) on Mar 30, 2008 at 11:06 UTC
    OS? Firefox version? Do you require a proxy? Do you even have a network connection? Perl version?

    In other words, try submitting a proper question.


    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
      Do you even have a network connection?
      No, I am sending smoke signs over to PerlMonks...

      I know the question did not contain the answer but... really, I get a 404 error from Google.