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 ( #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
Node Status?
node history
Node Type: perltutorial [id://720018]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2015-07-31 10:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (276 votes), past polls