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.19 by root, Wed Aug 29 07:48:19 2018 UTC vs.
Revision 1.20 by root, Wed Aug 29 08:13:22 2018 UTC

940 940
941 $wd->navigate_to ("https://duckduckgo.com/html"); 941 $wd->navigate_to ("https://duckduckgo.com/html");
942 my $input = $wd->find_element ("css selector", 'input[type="text"]'); 942 my $input = $wd->find_element ("css selector", 'input[type="text"]');
943 $wd->actions 943 $wd->actions
944 ->move ($input, 40, 5, "touch1") 944 ->move ($input, 40, 5, "touch1")
945 ->click; 945 ->click
946 ->key ("a"); 946 ->key ("a")
947 ->key ("b"); 947 ->key ("b")
948 ->pause (2000); 948 ->pause (2000)
949 ->key ("\x{E007}") 949 ->key ("\x{E007}")
950 ->pause (5000); 950 ->pause (5000)
951 ->perform; 951 ->perform;
952 952
953=item $wd->release_actions 953=item $wd->release_actions
954 954
955Release all keys and pointer buttons currently depressed. 955Release all keys and pointer buttons currently depressed.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines