Ask for user input with storeEval

The JS Prompt command inside StoreEval is autoclosed by Kantu :slight_smile: => Here are the details about this: Running javascript using StoreEval - #3 by admin - UI.Vision RPA - UI.Vision RPA Software Forum | Discuss RPA Automation, Selenium IDE and OCR API Text Recognition

And here is the workaround that I use to get input from the user:

  • Use PAUSE | 0 to stop the macro until resume is clicked
  • Ask the user to copy the required value to the clipboard
  • And voila! - you have the value inside the ${clipboard} variable in your macro :smiley:

Example:

{
  "CreationDate": "2018-10-10",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://bbc.com",
      "Value": ""
    },
    {
      "Command": "echo",
      "Target": "Please copy the input to the clipboard, then press RESUME",
      "Value": "#shownotification"
    },
    {
      "Command": "pause",
      "Target": "0",
      "Value": ""
    },
    {
      "Command": "echo",
      "Target": "Got it! Your input is: ${!clipboard}",
      "Value": "green"
    }
  ]
}