Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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]
talexb finishes writing a Cranky Old Man post, and hopes it will be taken in the spirit intended. :)
[Corion]: We're happy to have you here, talexb!
[talexb]: Thanks. :)

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2018-07-19 14:13 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (409 votes). Check out past polls.