Add 'jumpIf' and 'jumpIfNot' commands to README and executor; implement parsing, execution, and linter support for conditional command jumps in test scripts.
This commit is contained in:
@@ -37,6 +37,8 @@ The `dump` command creates HTML snapshots in `test-results/Chrome/<dumpname>/` t
|
||||
- `break` - Pause execution (press any key to continue)
|
||||
- `break "waiting for user input"` - Pause with message
|
||||
- `dump "step_name"` - Take screenshot
|
||||
- `jumpIf element=span childText="Server-Warenkorb" jump=4` - Jump over 4 commands if element exists
|
||||
- `jumpIfNot element=span childText="Server-Warenkorb" jump=4` - Jump over 4 commands if element doesn't exist
|
||||
|
||||
### Element Selectors
|
||||
- `element=tagname` - HTML tag (div, span, button, input, a, form, etc.)
|
||||
|
||||
Reference in New Issue
Block a user