How to click on a object that is out of the screen?

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:

  1. 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

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:
image

image

lst_processes.Where(Function(w) w.ProcessName.ToLower.StartsWith("p")).ToList()

Then pass it into the Kill Process Activity:

image

Kind Regards,
Ashwin A.K


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:

lst_processes.AsEnumerable().Where(Function(w) w.ProcessName.Tolower.Contains("excel")).ToList()

image

If its empty, that means I have to start it, and that is done by using the Start Process Activity:
image

Here is a simple sequence for your reference.

StartProcessIfNotRunning.xaml (5.2 KB)

Kind Regards,
Ashwin A.K

Thank you ashwin.ashok for your solution.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.