Click executes, but really does not

When attempting to Click on a button (Submit) in Chrome and Firefox, the RPA is able to record the event, but during playback, the log shows the click event, but nothing happens. Execution in the RPA tool seems to happen, but the actual click event does not happen as there is no response. Manually I can click the button and will get the response (either to add details or Success), but the automation does not trigger this event.

I’ve attempted with the three differing targets and have also attempted with Relative x,y coordinates and xClick with same non-event.

Is it how the button is coded? Is it expecting something the RPA can not provide?

{
“Command”: “click”,
“Target”: “//[text()[contains(.,‘Submit’)]]",
“Value”: “”,
“Targets”: [
"xpath=//
[@id="thread-composer-container"]/button”,
“xpath=//ats-thread-composer/div/button”,
“css=#thread-composer-container > button”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id="thread-composer-container"]/button",
“Value”: “”,
“Description”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//ats-thread-composer/div/button”,
“Value”: “”,
“Targets”: [
"xpath=//
[@id="thread-composer-container"]/button”,
“xpath=//ats-thread-composer/div/button”,
“css=#thread-composer-container > button”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “css=#thread-composer-container > button”,
“Value”: “”,
“Targets”: [
“xpath=//*[@id="thread-composer-container"]/button”,
“xpath=//ats-thread-composer/div/button”,
“css=#thread-composer-container > button”
],
“Description”: “”
},


It is likely that the button you try to click is dynamic and changes the html code and therefore ui vision does not detect it on the page in these cases it is necessary to find a new, different xpath

Here info about click dynamic element

https://ui.vision/rpa/docs/selenium-ide/click

Ah- I think I was using XClick incorrectly , so now I see that it is more sensitive as the browser needs to be in front and the tool is able to identify by the button image. Yes- the button is dynamic as well as other objects on the page that I will need to adjust for going forward.
Many thanks!

then XClick + image or XClickText + Text should work fine. With XClick + XPath it can be that this gives a wrong click location.

Yep. “BringBrowserToForeground” command helps :wink: