Documentation

Variables

Intro

Variables are a way to generate dynamic values for Test conditions. A Variable is a JavaScript function that is run in-time on the page. The Return value of the function is the value that is used in the Test condition.

Creating a Variable

Start by switching to the Variables tab and select "Create Variable".

Name

Use a unique name to identify the Variable. Remember, by default the name is used for sorting in the Variable list.

Code

The code hast to be an unnamed JavaScript function that returns a value. When the Variable is used in a Test condition that return value of this function is used for the comparison.

The code will be executed in-time on the page, which means the JavaScript code can access the page and its elements.