Posted on 2009-05-22 03:58:27-07 by snapper
Error when going to bogus URL

I'm using WWW::Selenium version 0.93. In previous versions of WWW::Selenium that I used the browser object would throw a fatal error if it was sent to a bogus URL. For example, the following code would crash:

$result = $browser->open("http://www.qwref43wv35fq3.com/");

I just recently built a new Linux system and installed the latest of everything. Now one of my tests doesn't crash when I purposefully open a bogus URL. Indeed, the open command returns a status of "OK".

Is that the intended behavior? If so, how does one tell if the open command resulted in going to a non-existent domain?

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.