Need Help with Auto Playing Macro in Chrome Browser

I have successfully been able to record a Macro from uploading an attachment to Gmail and sending it from Chrome. Our goal is now to Play this Macro on remote Windows VMs in the Chrome Browser. So far, I have been able to successfully install_and_setup_uivision_rpa_chrome_extension and download_and_install_ui_vision_xmodules onto the installed Chrome Browser (all CLI scripted).

Now the help which I need is on the last step which is playing the Macro after copying it onto the Remote machine. Based on the documentation and the Github sample, I see that the method to RUN the macro without any manual intervention is to utilize the ui.vision.html file to play the macro referenced by name. The query parameters needed are :

?macro=' + macro + '&storage=xfile&closeRPA=0&direct=1

What I keep facing is when the Chrome is launched; the ui.vision.html page is flashed quickly with the formed URL (file:///C:/Users/<local_user>/Desktop/uivision/ui.vision.html?macro=upload_a_file_through_gmail&storage=xfile&closeRPA=0&direct=1&savelog=log_10-21-2025_09_59_43.txt), then I am directed to “chrome-extension://invalid" with webpage body showing “invalid is blocked”, “This page has been blocked by Chrome”, “ERR_BLOCKED_BY_CLIENT”.

I have the folder uivision on the Desktop of the local_user and I can confirm ui.vision is in there along with macros folder which gets the `upload_a_file_through_gmail.json` properly uploaded in there. I have also ensured that Macro’s name field inside the json is also the same as file name to ensure when we refer to Macro there isn’t a discrepancy.

I have tried to use the “.json” extension in the macro name’s query param but still getting the same result.

One more method which I also have tried was to interact with the extension itself to click “Open in Side Panel” and “Play” after the extension is launched. I tried several methods, Puppeteer, Node.js to click those buttons and play the macro, but have had no luck. The documents recommended using the above method since “Currently, you can’t open the side panel from the command line. It needs a real user click due to the Google side panel API requirements.”

Any help that you can provide would be greatly appreciated. Thank you

I am wondering if this is blocking the ui.vision.html to execute…

Hello, did you already have a look at the command line api?

You will find sample code for many programming and scripting languages in the RPA source code on Github:

1 Like

Can you please post a screen video or screenshot of this situation (the chrome error page)? This is an error we have not seen before!

For the side panel question please see this post.

Allowing the UI.Vision to generate the HTML for me was the key. I had a template that doesn’t looks anything like what the generator Created. Thanks a bunch!

1 Like

Great, thanks a lot for this feedback.