The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023 and all versions of iMacros are now considered EOL (End-of-Life).
This demo site will also no longer be moderated from the Progress side. Thank you again for your business and support.

The Progress Team

<< Back to demos

EVAL (Javascript)

EVAL allows you to test for value and time ranges in your macro - and anything else that can be done with Javascript, such as generating a random number or formating text strings.

EVAL is ideal for powerful web testing (keyword assertion) and web performance monitoring with iMacros, as well as advanced web automation and web scraping projects. EVAL takes standard Javascript as input.

The demo macro will do 3 things now:

  1. Wait for a random time between one and five seconds.
  2. The macro will report an error if the time displayed here deviates more than 20h from your local system time.

    iMacros Server Time: 6/15/2024 5:34:37 AM

  3. The macro will report an error if the value in the box below is not between 99 and 101.
    You can edit the value and run just the line with eval command again via the iMacros Editor.