I finish running the runweb Macro

How can the runweb notify me when the macro execution is finished?

Run a JavaScript function or something. This should occur regardless of what is programmed in the macro.

I’m used https://ui.vision/demo/runweb

Thanks

Where are you? :grinning: I mean, are you in front of the PC, or do you mean something should inform the website that the macro has been completed?

When the user clicks on the button to run the macro I run a function that blocks and does not let him save the form, I need to run another JavaScript function that released the screen as soon as the macro is completed.

Thanks

My suggestion is to use ExecuteScript command at the end of your macro(s). With it, you can run a Javascript inside your web page. Or use TYPE to fill a (invisble) form element. All this can be recognized by your page Javascript.

Example:

{
  "Name": "js",
  "CreationDate": "2020-2-19",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://ui.vision/demo/tabs/1",
      "Value": ""
    },
    {
      "Command": "executeScript",
      "Target": "document.getElementById(\"sometext1\").value= \"Hello page, I am done\"; return 0;",
      "Value": ""
    }
  ]
}
1 Like