Appium
view release on metacpan or search on metacpan
lib/Appium/TouchActions.pm view on Meta::CPAN
=head1 VERSION
version 0.0804
=head1 METHODS
=head2 tap ( $x, $y )
Perform a precise tap at a certain location on the device, specified
either by pixels or percentages. All values are relative to the top
left of the device - by percentages, (0,0) would be the top left, and
(1, 1) would be the bottom right.
As per the Appium documentation, values between 0 and 1 will be
interepreted as percentages. (0.5, 0.5) will click in the center of
the screen. Values greater than 1 will be interpreted as pixels. (10,
10) will click at ten pixels away from the top and left edges of the
screen.
# tap in the center of the screen
$appium->tap( 0.5, 0.5 )
# tap a pixel position
$appium->tap( 300, 500 );
( run in 0.440 second using v1.01-cache-2.11-cpan-05162d3a2b1 )