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:
when:
visible: Some Text
file: {reference to another yaml file}
Supported conditions include:
visible: { Element matcher } # True if matching element is visible
notVisible: { Element matcher } # True if matching element is not present
true: { Value } # True if given value is true or not empty
Usage of JavaScript conditions is possible via
true
condition:- runFlow:
when:
true: ${MY_PARAMETER == 'Something'}
file: subflow.yaml
Last modified 3mo ago