line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Appium::Element; |
2
|
|
|
|
|
|
|
$Appium::Element::VERSION = '0.0803'; |
3
|
|
|
|
|
|
|
# ABSTRACT: Representation of an Appium element |
4
|
1
|
|
|
1
|
|
30642
|
use Moo; |
|
1
|
|
|
|
|
12060
|
|
|
1
|
|
|
|
|
6
|
|
5
|
1
|
|
|
1
|
|
1877
|
use MooX::Aliases; |
|
1
|
|
|
|
|
2478
|
|
|
1
|
|
|
|
|
6
|
|
6
|
1
|
|
|
1
|
|
333
|
use Carp qw/croak/; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
233
|
|
7
|
|
|
|
|
|
|
extends 'Selenium::Remote::WebElement'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has '+driver' => ( |
11
|
|
|
|
|
|
|
is => 'ro', |
12
|
|
|
|
|
|
|
handles => [ qw/is_android is_ios/ ] |
13
|
|
|
|
|
|
|
); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
alias tap => 'click'; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub set_value { |
20
|
0
|
|
|
0
|
|
|
my ($self, @values) = @_; |
21
|
0
|
0
|
|
|
|
|
croak "Please specify a value to set" unless scalar @values; |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
my $res = { command => 'set_value' }; |
24
|
0
|
|
|
|
|
|
my $params = { |
25
|
|
|
|
|
|
|
id => $self->id, |
26
|
|
|
|
|
|
|
value => \@values |
27
|
|
|
|
|
|
|
}; |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
return $self->_execute_command( $res, $params ); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |