| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
# ABSTRACT: Automatically generated class for Playwright::Mouse |
|
2
|
|
|
|
|
|
|
# PODNAME: Playwright::Mouse |
|
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
|
|
9
|
use strict; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
39
|
|
|
9
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
77
|
|
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
package Playwright::Mouse; |
|
12
|
|
|
|
|
|
|
$Playwright::Mouse::VERSION = '1.551'; |
|
13
|
1
|
|
|
1
|
|
7
|
use parent 'Playwright::Base'; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
6
|
|
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub new { |
|
16
|
0
|
|
|
0
|
1
|
|
my ( $self, %options ) = @_; |
|
17
|
0
|
|
|
|
|
|
$options{type} = 'Mouse'; |
|
18
|
0
|
|
|
|
|
|
return $self->SUPER::new(%options); |
|
19
|
|
|
|
|
|
|
} |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub spec { |
|
22
|
0
|
|
|
0
|
0
|
|
return $Playwright::spec->{'Mouse'}{members}; |
|
23
|
|
|
|
|
|
|
} |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub move { |
|
26
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
27
|
|
|
|
|
|
|
return $self->_api_request( |
|
28
|
|
|
|
|
|
|
args => [@_], |
|
29
|
|
|
|
|
|
|
command => 'move', |
|
30
|
|
|
|
|
|
|
object => $self->{guid}, |
|
31
|
|
|
|
|
|
|
type => $self->{type} |
|
32
|
0
|
|
|
|
|
|
); |
|
33
|
|
|
|
|
|
|
} |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub click { |
|
36
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
37
|
|
|
|
|
|
|
return $self->_api_request( |
|
38
|
|
|
|
|
|
|
args => [@_], |
|
39
|
|
|
|
|
|
|
command => 'click', |
|
40
|
|
|
|
|
|
|
object => $self->{guid}, |
|
41
|
|
|
|
|
|
|
type => $self->{type} |
|
42
|
0
|
|
|
|
|
|
); |
|
43
|
|
|
|
|
|
|
} |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub wheel { |
|
46
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
47
|
|
|
|
|
|
|
return $self->_api_request( |
|
48
|
|
|
|
|
|
|
args => [@_], |
|
49
|
|
|
|
|
|
|
command => 'wheel', |
|
50
|
|
|
|
|
|
|
object => $self->{guid}, |
|
51
|
|
|
|
|
|
|
type => $self->{type} |
|
52
|
0
|
|
|
|
|
|
); |
|
53
|
|
|
|
|
|
|
} |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
sub dblclick { |
|
56
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
57
|
|
|
|
|
|
|
return $self->_api_request( |
|
58
|
|
|
|
|
|
|
args => [@_], |
|
59
|
|
|
|
|
|
|
command => 'dblclick', |
|
60
|
|
|
|
|
|
|
object => $self->{guid}, |
|
61
|
|
|
|
|
|
|
type => $self->{type} |
|
62
|
0
|
|
|
|
|
|
); |
|
63
|
|
|
|
|
|
|
} |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
sub up { |
|
66
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
67
|
|
|
|
|
|
|
return $self->_api_request( |
|
68
|
|
|
|
|
|
|
args => [@_], |
|
69
|
|
|
|
|
|
|
command => 'up', |
|
70
|
|
|
|
|
|
|
object => $self->{guid}, |
|
71
|
|
|
|
|
|
|
type => $self->{type} |
|
72
|
0
|
|
|
|
|
|
); |
|
73
|
|
|
|
|
|
|
} |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
sub down { |
|
76
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
77
|
|
|
|
|
|
|
return $self->_api_request( |
|
78
|
|
|
|
|
|
|
args => [@_], |
|
79
|
|
|
|
|
|
|
command => 'down', |
|
80
|
|
|
|
|
|
|
object => $self->{guid}, |
|
81
|
|
|
|
|
|
|
type => $self->{type} |
|
82
|
0
|
|
|
|
|
|
); |
|
83
|
|
|
|
|
|
|
} |
|
84
|
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
sub on { |
|
86
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
87
|
|
|
|
|
|
|
return $self->_api_request( |
|
88
|
|
|
|
|
|
|
args => [@_], |
|
89
|
|
|
|
|
|
|
command => 'on', |
|
90
|
|
|
|
|
|
|
object => $self->{guid}, |
|
91
|
|
|
|
|
|
|
type => $self->{type} |
|
92
|
0
|
|
|
|
|
|
); |
|
93
|
|
|
|
|
|
|
} |
|
94
|
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
sub evaluate { |
|
96
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
97
|
|
|
|
|
|
|
return $self->_api_request( |
|
98
|
|
|
|
|
|
|
args => [@_], |
|
99
|
|
|
|
|
|
|
command => 'evaluate', |
|
100
|
|
|
|
|
|
|
object => $self->{guid}, |
|
101
|
|
|
|
|
|
|
type => $self->{type} |
|
102
|
0
|
|
|
|
|
|
); |
|
103
|
|
|
|
|
|
|
} |
|
104
|
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
sub evaluateHandle { |
|
106
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
107
|
|
|
|
|
|
|
return $self->_api_request( |
|
108
|
|
|
|
|
|
|
args => [@_], |
|
109
|
|
|
|
|
|
|
command => 'evaluateHandle', |
|
110
|
|
|
|
|
|
|
object => $self->{guid}, |
|
111
|
|
|
|
|
|
|
type => $self->{type} |
|
112
|
0
|
|
|
|
|
|
); |
|
113
|
|
|
|
|
|
|
} |
|
114
|
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
1; |
|
116
|
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
__END__ |