multiStepAction( step1, step2, etc. )



This function executes JavaScript actions across multiple Genie screens.

Parameters:

  • step1 - JavaScript statements provided in one string

  • step2 - JavaScript statements to be executed on the next screen

Alternatively, the steps can be provided using an array.

Example:

// The following steps are provided as separate parameters multiStepAction("pressKey('option1')", "changeElementValue('I_7_1', 'X'); pressKey('Enter')"); // The following steps are identical to the above but are provided using an array var steps = []; // define the array steps.push("pressKey('option1')"); // add a step steps.push("changeElementValue('I_7_1', 'X'); pressKey('Enter')"); // add another step multiStepAction(steps);