Embedded Macros Run Only Once + Close Tabs (Regression of Old Issue)

Follow-up to: Embedded Macros Now Close the Page (Thread #4957)

Issue Description

The bug where embedded macros close the host tab (reported in 2021) appears to have regressed in recent UI.Vision versions (using V9.5.3)

  1. Current Behavior:
  • Firefox: Runs once (tab stays open).

  • Chrome/Edge:

    • Runs only once.
    • Closes the tab if other tabs are open (same behavior as the original bug).
  • Demo Page (ui.vision/demo/runweb): Works correctly (multiple runs allowed, no tab closure).

  1. Expected Behavior:
  • Embedded macros should never close the host tab (like the demo page).
  • Multiple executions should be allowed without reloading.

Reproduction Steps

  1. Save Demo page as HTML.
  2. Open it in:
  • Firefox → Runs once (tab remains).
  • Chrome/Edge → Runs once, then closes the tab if others are open.
  1. Compare to https://ui.vision/demo/runweb (works perfectly).

Thanks for reporting this. At the moment, I am not sure yet if this is a bug or not.

What I found in my tests is this:

  • If you run the macro from a website (e. g. run rpa), the tab remains open, just as you said.

  • If you load the same HTML page locally, e. g. as file:///C:/test/EmbedRPA.html, we have two situations:
    – If it is the only tab open → it stays open (see video below)
    – If other tabs are open: The tab in which the macro was run is closed

In my tests, it works this way in Chrome, Edge and Firefox.

So I have two questions:

  • Is this what you are seeing?
  • Most importantly: What are you trying to do/automate? What kind of behavior do you need and why?

Video of one of my tests: