diff --git a/docs/src/selectors.md b/docs/src/selectors.md index 71099afbbf..ae3ba79f40 100644 --- a/docs/src/selectors.md +++ b/docs/src/selectors.md @@ -169,7 +169,7 @@ page.click("text=Log in") Text selector has a few variations: -- `text=Log in` - default matching is case-insensitive and searches for a substring. For example `text=Log` matches ``. +- `text=Log in` - default matching is case-insensitive and searches for a substring. For example, `text=Log` matches ``. ```js await page.click('text=Log in'); @@ -184,7 +184,7 @@ Text selector has a few variations: page.click("text=Log in") ``` -- `text="Log in"` - text body can be escaped with single or double quotes for case-sensitive match. For example `text="Log"` does not match `` but instead matches `Log in`. +- `text="Log in"` - text body can be escaped with single or double quotes to search for a text node with exact content. For example, `text="Log"` does not match `` because ``, because `