# Find Rows by Visual State in Scenario Editor

# Find Rows by Visual State in Scenario Editor

Use this guidance when a test needs to identify a table row by visual state, such as highlighted, disabled, selected, warning, or error styling.

## Recommended guidance

- Prefer stable data attributes, text, or status fields over raw CSS when available.
- Use style checks only when the style itself is part of the test objective.
- Avoid brittle row indexes if the table can sort, filter, or paginate.
- Document why the visual state matters to the business flow.

## Validation workflow

1. Locate the table or list container.
2. Filter rows by stable text, attribute, or status indicator.
3. Read the visual state only after the row is visible and stable.
4. Validate the expected row content before taking action.

**Last updated:** September 20, 2026