spa_assert
Assert whether page elements exist, are visible, have specific text, or match a count. Optionally navigate to a URL before checking.
Instructions
Run assertions on page elements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to navigate to first (optional) | |
| type | Yes | Assertion type | |
| value | No | Expected value (for text and count assertions) | |
| session | No | Session ID | default |
| contains | No | For text assertion: check if text contains value instead of exact match | |
| selector | Yes | CSS selector to check |