Hello, I’m trying to monitor user input on a target application, which has buttons with text inside. I would like to capture the text of the buttons clicked by the user. Is it possible?
The problem so far is that all activities I see in UiPath to get text require to specify at implementation time the UI element selector, and so they do not get the element at runtime (i.e. the clicked one).
Hi @loginerror, thanks for the response. Actually that is exactly what I’m using, but I can’t understand from the docs if and how I can monitor more buttons and then get the UI object (or at least the text) only of the clicked one…
Basically, you can use the Trigger activities to monitor certain events. Then, you can use the Get Source Element activity to return a variable of type UiPath.Core.UiElement that will allow you to take actions on it
I am attempting to get the source element from a Mouse Trigger event. Is this possible? I save the element as a variable in the get source element activity, but my click element activity fails later in the sequence when I attempt to specify the sourceElement variable as the element to click.
What is the error that you are getting? It would seem to me that the selector for the element could be changing between the moment you capture it into the variable and when you reuse it later on.
The error I get is “Click generic error”
The error I get when I check the “Simulate Click” box is “Action is not supported by this type of element. Please use another type of click.”