Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ screen.getByText(/welcome/i) // RegExp match
screen.getByText('welcome', { exact: false }) // substring match
screen.getByType('TextField') // element type
screen.getByRole('button', { name: 'Sign In' }) // semantic role + name filter
screen.getByPlaceholder('Search...') // placeholder text
screen.getByPlaceholder('search', { exact: false }) // substring match
```

**Direct actions:**
Expand Down Expand Up @@ -144,7 +146,11 @@ await locator.fill('hello@example.com') // tap to focus + type text
```typescript
await locator.isVisible() // boolean
await locator.isEnabled() // boolean
await locator.isSelected() // boolean
await locator.isFocused() // boolean
await locator.isChecked() // boolean
await locator.getText() // waits for visibility first
await locator.getValue() // raw value (e.g. text field content)
```

**Explicit waiting:**
Expand Down
Loading