Advanced Features
Conditional Steps
yaml
steps:
- "If login form is visible, then fill credentials"
- "Otherwise, verify user is already logged in"
Dynamic Content Handling
yaml
steps:
- "Wait for dynamic content to load"
- "Handle loading states gracefully"
- "Verify content appears as expected"
Screenshot Capture
yaml
steps:
- "Take screenshot before critical action"
- "Perform action"
- "Take screenshot after action for comparison"