1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-01-20 23:53:10 +00:00

Create a way to start applications using commands.

This commit is contained in:
Lukas Ruzicka 2019-05-07 11:42:36 +02:00
parent 333757eadc
commit 09a1c677bc

View File

@ -673,6 +673,25 @@ sub quit_firefox {
console_login(user=>'root');
}
sub start_with_command {
# Open the DE application launcher and type the name of application into it.
# Hit enter to run this application.
my $command = $_;
my $desktop = get_var('DESKTOP');
# Open the launching page or menu
send_key 'alt-f1';
wait_still_screen 2;
# Type the command name to run the application
type_very_safely $command;
send_key 'ret';
wait_still_screen 5;
}
sub start_with_launcher {
# Get the name of the needle with a launcher, find the launcher in the menu
# and click on it to start the application. This function works for the