… | |
… | |
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 | |
955 | Release all keys and pointer buttons currently depressed. |
955 | Release all keys and pointer buttons currently depressed. |