Linux terminal

Hi ,
I want to work with available Uielement on Linux terminal.

In Google cloud compute engine, for every instance there is ssh connect and after clicking on that , a Linux terminal will open and need to interact with element, can anyone help please?

Hello @Alok_Raj

Welcome to UiPath community…!’

Please check the below post.’

Thanks

To work with UI elements on a Linux terminal in UiPath, you can use the UiPath.Linux.Activities package, which contains a set of activities specifically designed for working with UI elements on Linux systems.

Here are the steps to work with UI elements on a Linux terminal in UiPath:

  1. Install the UiPath.Linux.Activities package by going to the Manage Packages window in the UiPath Studio and searching for the package.
  2. In the UiPath Studio, create a new process and add a Terminal activity from the UiPath.Linux.Activities package to the design canvas.
  3. Configure the Terminal activity by setting the Command property to the command you want to run on the terminal.
  4. Add a Get Text activity from the UiPath.Linux.Activities package to the design canvas.
  5. In the Get Text activity’s properties, set the Element property to the UI element you want to work with. You can use the Find Element activity from the UiPath.Linux.Activities package to locate the UI element.
  6. Set the Output property of the Get Text activity to a variable where you want to store the text of the UI element.
  7. Run the process to execute the command on the terminal and retrieve the text of the UI element.

Here is an example of how this could be implemented in UiPath:
Terminal terminal = new Terminal();
terminal.Command = “ls -l”;

GetText getText = new GetText();
getText.Element = terminal;
getText.Output = textVariable;

terminal.Execute();
getText.Execute();

Console.WriteLine(textVariable);
This code creates a Terminal activity and a Get Text activity, and sets the Command property of the Terminal activity to ls -l , which lists the files in the current directory. It then sets the Element property of the Get Text activity to the Terminal activity, and the Output property to a variable called textVariable . When the process is run, the Terminal activity executes the ls -l command on the terminal, and the Get Text activity retrieves the text of the terminal output and stores it in the textVariable variable. Finally, the text of the terminal output is displayed on the console.

Thanks for reply, but i am able to get UiPath.Linux activities, are you talking about UiPath.terminal activities???

Also I am not able use click activity not even click image , so what should I use in place of that.