Conditions
By design, Maestro discourages the usage of conditional statements unless absolutely necessary as they could easily ramp up the complexity of your tests.
runFlow conditionally
Nested Flows
Or, if you don't wish to extract your commands into a separate flow file, you can run the commands inline like this:
runFlow
runScript conditionally
runScript
Multiple conditions
Note that multiple conditions are applied as AND conditions.
Conditions
Supported conditions include:
All of the normal element matchers are supported, e.g.
Selectors
JavaScript
Usage of JavaScript conditions is possible via true
condition:
JavaScript
Last updated