From 7d9b6bb76551949c8d70f89521e88337768e95bc Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Thu, 14 Mar 2019 10:16:07 +0100 Subject: [PATCH] Add support for xfce launchers. --- lib/utils.pm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/utils.pm b/lib/utils.pm index c071d919..6368e922 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -734,6 +734,21 @@ sub start_with_launcher { send_key 'ret'; wait_still_screen 5; } + elsif ($desktop eq 'xfce') { + # Click on the XFCE menu applications + assert_and_click 'xfce_menu_launcher'; + wait_still_screen 2; + + # If the application icon is in a group, click on group first + if ($group) { + assert_and_click $group; + wait_still_screen 2; + } + + # Click on the application icon + assert_and_click $launcher; + wait_still_screen 5; + } }