mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-15 17:51:27 +00:00
Use keyboard to navigate in menu.
This commit is contained in:
parent
94818cd1aa
commit
a412f37a50
11
lib/utils.pm
11
lib/utils.pm
@ -756,24 +756,23 @@ sub start_with_launcher {
|
|||||||
# Click on the KDE launcher icon
|
# Click on the KDE launcher icon
|
||||||
assert_and_click 'kde_menu_launcher';
|
assert_and_click 'kde_menu_launcher';
|
||||||
wait_still_screen 2;
|
wait_still_screen 2;
|
||||||
#mouse_set(10, 10);
|
|
||||||
|
|
||||||
# Select the appropriate submenu
|
# Select the appropriate submenu
|
||||||
assert_and_click $submenu;
|
assert_and_click $submenu;
|
||||||
wait_still_screen 2;
|
wait_still_screen 2;
|
||||||
#mouse_set(10, 10);
|
|
||||||
|
|
||||||
# Select the appropriate menu subgroup where real launchers
|
# Select the appropriate menu subgroup where real launchers
|
||||||
# are placed, but only if requested
|
# are placed, but only if requested
|
||||||
if ($group) {
|
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;
|
wait_still_screen 2;
|
||||||
#mouse_set(10, 10);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Find and click on the menu item to start the application
|
# Find and click on the menu item to start the application
|
||||||
send_key_until_needlematch($launcher, 'down', 20, 5);
|
send_key_until_needlematch($launcher, 'down', 40, 3);
|
||||||
assert_and_click $launcher;
|
send_key 'ret';
|
||||||
wait_still_screen 5;
|
wait_still_screen 5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user