File::Basename();
use Cwd();
use LWP::UserAgent();
use Sub::Install();
use Net::EmptyPort();
use JSON::MaybeXS();
use File::Which();
use File::Temp();
use Capture::Tiny qw{capture_merged capture_stde
needed.
Currently understands commands you can send to all the playwright classes defined in api.json (installed wherever your OS puts shared files for CPAN distributions).
See L<https://playwright.
ically generated during module build based on the spec hash built by playwright.
See generate_api_json.sh and generate_perl_modules.pl if you are interested in how this sausage is made.
You can check
laywright::Util;
$Playwright::Util::VERSION = '1.532';
use strict;
use warnings;
use v5.28;
use JSON::MaybeXS();
use Carp qw{confess};
use Sereal::Encoder;
use Sereal::Decoder;
use File::Temp;
use P
thod, $fullurl );
$request->header( 'Content-type' => 'application/json' );
$request->content( JSON::MaybeXS::encode_json( \%args ) );
my $response = $ua->request($request);
my $conten
server failed to spawn!"
if $content =~ m/^Can't connect to/;
my $decoded = JSON::MaybeXS::decode_json($content);
my $msg = $decoded->{message};
confess($msg) if $decoded->{err
ywright::Base::VERSION = '1.532';
use strict;
use warnings;
use v5.28;
use Sub::Install();
use JSON;
use Playwright::Util();
#ABSTRACT: Object representing Playwright pages
no warnings 'experimen
oolean' ) {
my $truthy = int( !!$arg );
$args{args}[$i] = $truthy ? JSON::true : JSON::false;
}
elsif ( $type->{name} eq 'Object' ) {
$type->{proper
ties}{$prop}{type}{name} eq 'boolean';
$args{args}[$i]->{$prop} = $truthy ? JSON::true : JSON::false;
}
}
}
return %args;
}
sub _api_request ( $self, %arg
type => $self->{type}
);
}
sub json {
my $self = shift;
return $self->_api_request(
args => [@_],
command => 'json',
object => $self->{guid},
rAddr> for more information.
=head2 json(@args)
Execute the Response::json playwright routine.
See L<https://playwright.dev/docs/api/class-Response#Response-json> for more information.
=head2 head
type => $self->{type}
);
}
sub json {
my $self = shift;
return $self->_api_request(
args => [@_],
command => 'json',
object => $self->{guid},
> for more information.
=head2 json(@args)
Execute the APIResponse::json playwright routine.
See L<https://playwright.dev/docs/api/class-APIResponse#APIResponse-json> for more information.
=head2