19-12-23 06:35 AM
I was facing this issue while when i try to add click on a "send button" in UI.
19-12-23 12:23 PM
Where a Press Button or Click action does not work you will need to use a Global Mouse Click Centre.
21-12-23 07:40 AM
Hi Denis, I have done the same as you said to used Global Mouse Click Centre but the button i wanted to press(click) is still not working.
21-12-23 07:50 AM
Hi Ayan Shahid,
Option1: Did you get chance to focus before trying Global Mouse click center?
I would try option1 then explore other options
Options2: Try to Focus and Use Parent Element in App Modeller with Global send keys/Key strokes "Enter"
Option3: Focus+Global send key events (App Modeller> Parent Element) with Key storkes "Enter".
It looks like you have used Action: Press you can also try focus+Click as well.
------------------------------
-----------------------
If I answered your query. Please mark it as the "Best Answer"
Harish Mogulluri
Lead developer
America/New_York TX
------------------------------
21-12-23 08:44 AM
Hi Harish, I was trying Foucs+Click but it was not working because the button i was trying to click has an javascript element in his href and this the issue i am facing. I had also tried the options you provided but those also didn't work.
This is the screenshot of the error i am facing.
21-12-23 01:57 PM
Global Mouse Click Centre will always work if the button is enabled.
What is important, like Ayan said, is that the element is focused (otherwise the click event will not be clicking on the button). You do not to use a focus action, you just need to use the Activate action on the window the button is in to ensure it is available and the foremost window, ensure the button can be seen on the screen (if it is off screen it will not work, you will need to scroll to it).
Also stepping through in debugger might not work with testing your global click, the very action of your studio session getting back focus between steps can impact your interaction with the app screen - better to a breakpoint within your flow and run to it.
Finally, you could put some loop logic in to try sending the click a few times - so global click centre; wait 2 seconds for outcome; try again if less than third attempt.
If you have not done the Surface Automation training I strongly recommend it. There will always be stuff like this somewhere in the automations you build and the SA training is mandatory if you want to be a Blue Prism developer.
Good luck