Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Hi barbie,
    this code works quite well for me (Win XP + ActivePerl 5.8.8 + Selenium 0.27):
    #!/usr/bin/perl

    use strict;
    use warnings;
    use Test::More tests => 2;
    use Test::WWW::Selenium;

    my $url = 'http://www.foo-magazin.de';
    my $sel = Test::WWW::Selenium->new(
    host => 'localhost',
    port => 4444,
    browser => '*firefox',
    browser_url => $url,
    default_names => 1,);
    $sel->open_ok($url);
    $sel->title_like(qr/Perl.Magazin/);
    • browser => '*firefox',

      That's the bit that doesn't work for me. It was driving me nuts yesterday, before I just gave up and reduced myself to using IE. Will have to check versions on my laptop, but it's XP and the latest version of Selenium, plus a 5.8 install of Perl. However, I suspect it to be a path thing, even though manually extending the path doesn't work either!