Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Using WWW::Selenium To Test Or Automate An Ajax Website

by Limbic~Region (Chancellor)
on Oct 28, 2008 at 14:49 UTC ( #720018=perltutorial: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    "*custom C:/path/to/ff/firefox.exe -no-remote -profile C:/selenium/fir
  2. or download this
    sub wait_for_JS_function {
        my ($self, $func, $timeout) = @_;
        croak "Timed out waiting for JS func: '$func'";
  3. or download this
    # Assumes only 1 currently opened window with target _blank
    sub select_target_blank_window {
        croak "Timed out waiting to select blank target window" if ! defin
    +ed $window_name;
        return $self->select_window($window_name);
  4. or download this
    sub set_hidden_parameter {
        my ($self, $form, $elem, $val) = @_;
        my $rc = $self->get_eval('$javascript');
        return $rc;
  5. or download this
    $sel->type($loc, $val);
    $sel->fire_event($loc, 'onblur');

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perltutorial [id://720018]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2015-10-07 01:34 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (169 votes), past polls