From d8a50c5bf36def56703bb825ff2670fd6449363e Mon Sep 17 00:00:00 2001 From: gmegidish Date: Thu, 2 Apr 2026 12:52:17 +0200 Subject: [PATCH] docs: add missing locators and queries to README Add getByPlaceholder to locator factories, and isSelected, isFocused, isChecked, getValue to the queries section. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 2eab619..b207c00 100644 --- a/README.md +++ b/README.md @@ -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:** @@ -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:**