poppadom
(Poppadom)
March 15, 2022, 6:38am
1
Hi,
I wanted to click on a item that in services (app of the window) to start it.
However, the item I wanted to click on is not in the screen. For example, the item I wanted to click on is start from ‘p’.
I tried using the simulateClick in UiPath, but it shows that it does not support the element.
The workflow I wanted to use is like this:
open services(app)
2.click item that start with ‘p’
3.click the start button
4.check whether the status is running
5.if yes, close the services(app)
Thank you.
hi
Is it a button or a text that you want to click
And is there any other word staring with P
Cheers @poppadom
Gokul001
(Gokul Balaji)
March 15, 2022, 6:43am
3
HI @poppadom
Try to use click activity
Enable the Simulated click in the properties panel
Regards
Gokul
Hi @poppadom ,
Are you trying to Kill a particular Service if it is running?
If that is the case, you could use the Get Process Activity which outputs a List of Processes and then filter out the once you want like so:
lst_processes.Where(Function(w) w.ProcessName.ToLower.StartsWith("p")).ToList()
Then pass it into the Kill Process Activity :
Kind Regards,
Ashwin A.K
poppadom
(Poppadom)
March 15, 2022, 6:49am
5
This is the services that I means, and the item that I wanted to click is start with P .
(The item that I said is the one under the Name)
According to the services, I need to scroll down and find the item I wanted. This is because there is no search button.
poppadom
(Poppadom)
March 15, 2022, 6:50am
6
I tried ald and it shows the sentences below:
Click ‘list item’: Click with “Simulate” is not supported for this element. Please use other input method.
poppadom
(Poppadom)
March 15, 2022, 6:51am
7
No, I don’t want to kill it.
I wanted to start the service to make it running.
Alright then, take this for example.
I want to start Excel if its not currently running on my system, so what I will do first is perform a query to see whether its running or not using this snippet of code:
lst_processes.AsEnumerable().Where(Function(w) w.ProcessName.Tolower.Contains("excel")).ToList()
If its empty, that means I have to start it, and that is done by using the Start Process Activity :
Here is a simple sequence for your reference.
StartProcessIfNotRunning.xaml (5.2 KB)
Kind Regards,
Ashwin A.K
poppadom
(Poppadom)
March 15, 2022, 7:21am
9
Thank you ashwin.ashok for your solution.
1 Like
system
(system)
Closed
March 18, 2022, 7:21am
10
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.