The manakai project

NAME

Web::Driver::Client::Response

WebDriver response

SYNOPSIS
  $session->execute (q{
    return document.title;
  })->then (sub {
    my $res = $_[0];
    warn $res->json->{value};
  });

DESCRIPTION

The Web::Driver::Client::Response object represents a response from the WebDriver server.

METHODS

There are following methods:

$value = $res->json

Return the Perl value converted from the JSON data in the response, if any, or undef otherwise.

$boolean = $res->is_error

Return whether the response represents an error or not.

$string = '' . $res
$string = $res->stringify

Return a short string representing the response. This should be useful for development.

AUTHOR

Wakaba <wakaba@suikawiki.org>

LICENSE

Copyright 2016-2017 Wakaba <wakaba@suikawiki.org>.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 5:

'=item' outside of any '=over'

Around line 14:

You forgot a '=back' before '=head1'