Error requesting http://localhost:4444/selenium-server/driver

2,014 views
Skip to first unread message

Subhabrata

unread,
Feb 29, 2008, 5:00:12 AM2/29/08
to selenium-users...@googlegroups.com
Hi,

I am new to selenium. I am facing a problem which may look simple sorry for that.

I am executing perl script thru selenium. I got this script from * http://selenium-rc.openqa.org/perl.html. *

Name of the script is *test_google.pl.* The script is running fine. But when instead of *google* I am using *gmail* it is giving following error:

*Error requesting http://localhost:4444/selenium-server/driver/?cmd=open&1=http%3A%2F%2Fgmail.com&sessionId=480337:*
*Permission denied*

The original script:

use WWW::Selenium::Util qw(server_is_running);
use Test::More;
my ($host, $port) = server_is_running();
if ($host and $port) {
plan tests => 1;
}
else {
plan skip_all => "No selenium server found!";
exit 0;
}
my $sel = Test::WWW::Selenium->new(
host => $host,
port => $port,
browser => "*iexplore",
browser_url => "http://www.google.com/webhp",
);
* + $sel->open("http://www.google.com/webhp"); +*

I change the above highlighted portion to * $sel->open("http://www.gmail.com/webhp"); OR $sel->open("http://www.gmail.com/web");*

The above mentioned error came.

Can some one point out where it is wrong.

Adrian Ennis

unread,
Feb 29, 2008, 5:13:10 AM2/29/08
to selenium-users...@googlegroups.com
I had this problem also, I resolved it by running the selenium rc server as root. In Linux:

sudo java -jar selenium-server.jar

Subhabrata

unread,
Feb 29, 2008, 5:26:11 AM2/29/08
to selenium-users...@googlegroups.com
Thanks but I am working on Windows :(

Subhabrata

unread,
Mar 2, 2008, 11:30:25 PM3/2/08
to selenium-users...@googlegroups.com
thanks. Realy it helped :)

Reply all
Reply to author
Forward
0 new messages