Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by Limbic~Region (Chancellor)
on Oct 28, 2008 at 14:49 UTC ( [id://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
    +efox/custom_profile"
    
  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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-23 22:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found