File Coverage

blib/lib/Playwright/PlaywrightException.pm
Criterion Covered Total %
statement 9 19 47.3
branch n/a
condition n/a
subroutine 3 8 37.5
pod 4 5 80.0
total 16 32 50.0


line stmt bran cond sub pod time code
1             # ABSTRACT: Automatically generated class for Playwright::PlaywrightException
2             # PODNAME: Playwright::PlaywrightException
3              
4             # These classes used to be generated at runtime, but are now generated when the module is built.
5             # Don't send patches against these modules, they will be ignored.
6             # See generate_perl_modules.pl in the repository for generating this.
7              
8 1     1   4 use strict;
  1         2  
  1         25  
9 1     1   3 use warnings;
  1         1  
  1         47  
10              
11             package Playwright::PlaywrightException;
12             $Playwright::PlaywrightException::VERSION = '1.551';
13 1     1   14 use parent 'Playwright::Base';
  1         1  
  1         4  
14              
15             sub new {
16 0     0 1   my ( $self, %options ) = @_;
17 0           $options{type} = 'PlaywrightException';
18 0           return $self->SUPER::new(%options);
19             }
20              
21             sub spec {
22 0     0 0   return $Playwright::spec->{'PlaywrightException'}{members};
23             }
24              
25             sub on {
26 0     0 1   my $self = shift;
27             return $self->_api_request(
28             args => [@_],
29             command => 'on',
30             object => $self->{guid},
31             type => $self->{type}
32 0           );
33             }
34              
35             sub evaluate {
36 0     0 1   my $self = shift;
37             return $self->_api_request(
38             args => [@_],
39             command => 'evaluate',
40             object => $self->{guid},
41             type => $self->{type}
42 0           );
43             }
44              
45             sub evaluateHandle {
46 0     0 1   my $self = shift;
47             return $self->_api_request(
48             args => [@_],
49             command => 'evaluateHandle',
50             object => $self->{guid},
51             type => $self->{type}
52 0           );
53             }
54              
55             1;
56              
57             __END__