ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-WebDriver/WebDriver.pm
(Generate patch)

Comparing AnyEvent-WebDriver/WebDriver.pm (file contents):
Revision 1.32 by root, Mon Sep 3 20:35:30 2018 UTC vs.
Revision 1.33 by root, Mon Sep 3 20:44:42 2018 UTC

1340 1340
1341 $self->_add ($source, ptr => pointerMove => 1341 $self->_add ($source, ptr => pointerMove =>
1342 origin => $origin, x => $x*1, y => $y*1, duration => $duration*1) 1342 origin => $origin, x => $x*1, y => $y*1, duration => $duration*1)
1343} 1343}
1344 1344
1345=item $al = $al->cancel ($source)
1346
1347Executes a pointer cancel action.
1348
1349=cut
1350
1351sub cancel {
1352 my ($self, $source) = @_;
1353
1354 $self->_add ($source, ptr => "pointerCancel")
1355}
1356
1345=item $al = $al->keyDown ($key, $source) 1357=item $al = $al->keyDown ($key, $source)
1346 1358
1347=item $al = $al->keyUp ($key, $source) 1359=item $al = $al->keyUp ($key, $source)
1348 1360
1349Press or release the given key. 1361Press or release the given key.
1369 $al->key ("{Enter}"); 1381 $al->key ("{Enter}");
1370 1382
1371=item $al = $al->type ($string, $source) 1383=item $al = $al->type ($string, $source)
1372 1384
1373Convenience method to simulate a series of key press and release events 1385Convenience method to simulate a series of key press and release events
1374for the keys in C<$string>. There is no syntax for special keys, 1386for the keys in C<$string>, one pair per extended unicode grapheme
1375everything will be typed "as-is" if possible. 1387cluster. There is no syntax for special keys, everything will be typed
1388"as-is" if possible.
1376 1389
1377=cut 1390=cut
1378 1391
1379our %SPECIAL_KEY = ( 1392our %SPECIAL_KEY = (
1380 "Unidentified" => 0xE000, 1393 "Unidentified" => 0xE000,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines