Thank you for the suggestion. I played with click command alot and when I couldn’t find a solution I switched to xclick and it’s working perfectly, however after tens of rounds ( I play the procedure several hundred timed ), it doesn’t work or gives me out of memory error in chrome. I have no idea why is that, although I’m running this automation on a Windows 11 VM with 4 CPU cores and 16GB of RAM.
The UI.Vision RPA command line allows you to control the UI.Vision RPA operation. With the -savelog switch a calling script can easily check on the success of each macro run. The -closebrowser and -closeRPA switches allow you close Chrome and Firefox periodically to avoid memory leaks.
So in other words, you use a script e. g. Python, VBS or Powershell to start the macro via command line, run e.g, a macro with 200 loops, then close the browser, and then start it again and run the next 200 loops. This way you can run your automation forever without memory issues.
Thank you very much for the info. I will try it for sure.
But the problem is something else. For exmple meanwhile I was reading your message, my script ran 25 times and after this time, the xclick is not working properly and is not clicking on the checkbox. I have to close UI Vision and the reopen it to make it work again. I think this is a problem with UI Vision that should be fixed.
Thank you for your help. This page uses frames and as i mentioned earlier this is the frame that the checkbox is placed on:
Another strange problem is that when I ran your code, I can see that the checkbox is checked visually, but after UI Vision clicks on accept button, it gives me an error asking me to accept the terms!
Maybe this is caused due to the website using frames