mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-02-01 13:13:08 +00:00
Create a way to start applications using commands.
This commit is contained in:
parent
333757eadc
commit
09a1c677bc
19
lib/utils.pm
19
lib/utils.pm
@ -673,6 +673,25 @@ sub quit_firefox {
|
|||||||
console_login(user=>'root');
|
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 {
|
sub start_with_launcher {
|
||||||
# Get the name of the needle with a launcher, find the launcher in the menu
|
# 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
|
# and click on it to start the application. This function works for the
|
||||||
|
Loading…
Reference in New Issue
Block a user