From a412f37a50858e4bce1991fd5f0edc643612257f Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Fri, 15 Mar 2019 15:34:25 +0100 Subject: [PATCH] Use keyboard to navigate in menu. --- lib/utils.pm | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/utils.pm b/lib/utils.pm index 149920cc..22c18228 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -756,24 +756,23 @@ sub start_with_launcher { # Click on the KDE launcher icon assert_and_click 'kde_menu_launcher'; wait_still_screen 2; - #mouse_set(10, 10); # Select the appropriate submenu assert_and_click $submenu; wait_still_screen 2; - #mouse_set(10, 10); # Select the appropriate menu subgroup where real launchers # are placed, but only if requested if ($group) { - assert_and_click $group; + send_key_until_needlematch($group, 'down', 20, 3); + send_key 'ret'; + #assert_and_click $group; wait_still_screen 2; - #mouse_set(10, 10); } # Find and click on the menu item to start the application - send_key_until_needlematch($launcher, 'down', 20, 5); - assert_and_click $launcher; + send_key_until_needlematch($launcher, 'down', 40, 3); + send_key 'ret'; wait_still_screen 5; } }