Software: UI Vision
How to click on the desired option at the specified time? What should be
the cammand section?
Example: I want to click on an option on a web page at 9:00 pm. How to
do it now?
This macro waits until a certain time:
Just set your time in this line
...var datetrigger = new Date(\"Mon Jun 29 2020 14:46:00 GMT+0200\");....
Macro: (diff
is the time difference until trigger time in milliseconds)
{
"Name": "wait for time",
"CreationDate": "2020-6-29",
"Commands": [
{
"Command": "echo",
"Target": "I will wait...",
"Value": ""
},
{
"Command": "do",
"Target": "",
"Value": ""
},
{
"Command": "executeScript_Sandbox",
"Target": "var datetrigger = new Date(\"Mon Jun 29 2020 14:46:00 GMT+0200\"); var datenow = new Date(); return (datetrigger - datenow);",
"Value": "diff"
},
{
"Command": "executeScript_Sandbox",
"Target": "var date1 = new Date(); return (date1);",
"Value": "time"
},
{
"Command": "echo",
"Target": " ${Diff}, Now is: ${time}",
"Value": "blue"
},
{
"Command": "pause",
"Target": "1000",
"Value": "time"
},
{
"Command": "repeatIf",
"Target": "${diff} > 0",
"Value": ""
},
{
"Command": "echo",
"Target": "Time is here!",
"Value": "green"
}
]
}
Another option if you don’t want UI Vision running non-stop is to start your macro at your triggered time by using the CLI: UI Automation Open-Source Selenium IDE plus additional features, iMacros alternative and trigger using a scheduler (task scheduler, cron, etc)