File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,6 +113,8 @@ screen.getByText(/welcome/i) // RegExp match
113113screen .getByText (' welcome' , { exact: false }) // substring match
114114screen .getByType (' TextField' ) // element type
115115screen .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
145147await locator .isVisible () // boolean
146148await locator .isEnabled () // boolean
149+ await locator .isSelected () // boolean
150+ await locator .isFocused () // boolean
151+ await locator .isChecked () // boolean
147152await locator .getText () // waits for visibility first
153+ await locator .getValue () // raw value (e.g. text field content)
148154```
149155
150156** Explicit waiting:**
You can’t perform that action at this time.
0 commit comments