Hi folks.

Returning to Perl on Win32 for the first time in ages. Installed Strawberry 
Perl and WWW::Selenium.  However, when I run the example in the CPAN help 
page, it hangs because the $sel->click doesn't work.

If I manually click on the button the rest of the script works fine.

Anyone got any ideas why and what I need to do to fix it?
Alternatively, does anyone have experience of installing WWW::Selenium on a 
Linux box and using it to control a Windows machine?

Example Script

    use WWW::Selenium;

    my $sel = WWW::Selenium->new( host => "localhost",
                                  port => 4444,
                                  browser => "*iexplore",
                                  browser_url => "http://www.google.com";,
                                );

    $sel->start;
    $sel->open("http://www.google.com";);
    $sel->type("q", "hello world");
    $sel->click("btnG");
    $sel->wait_for_page_to_load(5000);
    print $sel->get_title;
    $sel->stop;

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to