AnyEvent-WebDriver

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    $wd->dismiss_alert
        Dismiss a simple dialog, if present.

    $wd->accept_alert
        Accept a simple dialog, if present.

    $text = $wd->get_alert_text
        Returns the text of any simple dialog.

    $text = $wd->send_alert_text
        Fills in the user prompt with the given text.

   SCREEN CAPTURE
    $wd->take_screenshot
        Create a screenshot, returning it as a PNG image. To decode and
        save, you could do something like:

           use MIME::Base64 ();

           my $screenshot = $wd->take_screenshot;

WebDriver.pm  view on Meta::CPAN

=item $wd->accept_alert

Accept a simple dialog, if present.

=item $text = $wd->get_alert_text

Returns the text of any simple dialog.

=item $text = $wd->send_alert_text

Fills in the user prompt with the given text.


=cut

sub dismiss_alert_ {
   $_[0]->post_ ("alert/dismiss" => undef, $_[1]);
}

sub accept_alert_ {
   $_[0]->post_ ("alert/accept" => undef, $_[1]);



( run in 1.788 second using v1.01-cache-2.11-cpan-6aa56a78535 )