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)
Is it a button or a text that you want to click
And is there any other word staring with P
Try to use click activity
Enable the Simulated click in the properties panel
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:
Then pass it into the Kill Process Activity:
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.
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.
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:
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)
Thank you ashwin.ashok for your solution.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.