Skip to content

Commit 267b7b6

Browse files
authored
docs: add missing locators and queries to README
2 parents 4e71c33 + d8a50c5 commit 267b7b6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ screen.getByText(/welcome/i) // RegExp match
113113
screen.getByText('welcome', { exact: false }) // substring match
114114
screen.getByType('TextField') // element type
115115
screen.getByRole('button', { name: 'Sign In' }) // semantic role + name filter
116+
screen.getByPlaceholder('Search...') // placeholder text
117+
screen.getByPlaceholder('search', { exact: false }) // substring match
116118
```
117119

118120
**Direct actions:**
@@ -144,7 +146,11 @@ await locator.fill('hello@example.com') // tap to focus + type text
144146
```typescript
145147
await locator.isVisible() // boolean
146148
await locator.isEnabled() // boolean
149+
await locator.isSelected() // boolean
150+
await locator.isFocused() // boolean
151+
await locator.isChecked() // boolean
147152
await locator.getText() // waits for visibility first
153+
await locator.getValue() // raw value (e.g. text field content)
148154
```
149155

150156
**Explicit waiting:**

0 commit comments

Comments
 (0)