Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2017-06-24 15:49 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (560 votes). Check out past polls.