Hello, thank you for the bug report.
The code is up here:
http://github.com/lukec/cpan-selenium-rc-perl/tree/master
If you have any failing tests and/or patches, please fork the code and send
me a pull request. Otherwise I'll get to this in due time.
Cheers,
Luke
On Thu, Apr 23, 2009 at 6:49 AM, Salve J. Nilsen via RT <
bug-Test-WWW-Selenium@rt.cpan.org> wrote:
Show quoted text> Thu Apr 23 09:48:59 2009: Request 45247 was acted upon.
> Transaction: Ticket created by sjn
> Queue: Test-WWW-Selenium
> Subject: open_ok returns "ok" after failing to connect to server
> Broken in: 1.17
> Severity: Important
> Owner: Nobody
> Requestors: sjn@cpan.org
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=45247 >
>
>
> I have the following code:
>
>
> #!/usr/bin/perl
>
> use Test::More tests => 1;
> use Test::WWW::Selenium;
>
> my $sel = Test::WWW::Selenium->new(
> host => "localhost",
> port => 4444,
> browser => "*firefox",
> browser_url => "
http://localhost:8080/", # nothing runs here
> default_names => 1,
> );
>
> $sel->open_ok("
http://localhost:8080/"); # fail, but reported as success
>
> __END__
>
> This is obviously wrong. It should return a fail, if the browser can't
> connect to the server at all. :-(
>
>