Helper method for WWW::Selenium

Helper, especially for Ajax. Most Selenium wrappers implement this hook. Perl hasn’t caught up yet.

{
    package WWW::Selenium;
    sub wait_for_element_present {
       my $self = shift;
       $self->do_command("waitForElementPresent", @_);
    }
}

(Update: this is already in the package! That’s what I get for not trying it before assuming it wasn’t available.)

digg stumbleupon del.icio.us reddit Fark Technorati Faves

Discussion

Comments


Luke Closs

Re: Helper method for WWW::Selenium

WWW::Selenium already has ->wait_for_element_present().

http://github.com/lukec/cpan-selenium-rc-perl/blob/master/lib/WWW/Selenium.pm#L3418

Is there something I'm missing? Patches warmly accepted.

By Luke Closs on 9 December 2009 · 00:14
comment link · reply to this

Ashley

Re^2: Helper method for WWW::Selenium

No, it was just me making a bad assumption. Thank you so much for letting me know and for putting together such and awesome package.

It’s a pretty important method for testing Ajax stuff so maybe it could go in the Pod?

By Ashley on 9 December 2009 · 08:32
comment link · reply to this

Your information (required) Name*
Email*
Website

* Indicates required fields; email is used for validation and is not displayed on the site.

Your comment
Commenting on Helper method for WWW::Selenium
Title

Body is limited to ≈1,000 words. Paragraphs—but not line breaks—are automatically inserted. Valid XHTML is required. These are the allowed tags–

<a href=""></a> <br/> <acronym title=""></acronym> <abbr title=""></abbr> <code></code> <pre></pre> <tt></tt> <ins></ins> <del></del> <hr/> <cite></cite> <b></b> <i></i> <sup></sup> <sub></sub> <strong></strong> <em></em> <h1></h1> <h2></h2> <h3></h3> <q></q> <blockquote></blockquote>