Skip to content

Commit c57511b

Browse files
authored
docs: fix locator example to use elements() method (#8867)
1 parent 7e6c37a commit c57511b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guide/browser/locators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ These locators will always succeed:
908908
page.getByText('Hello World').elements() // ✅ [HTMLElement]
909909
page.getByText('World').elements() // ✅ [HTMLElement]
910910
page.getByText('Hello', { exact: true }).elements() // ✅ [HTMLElement]
911-
page.getByText('Hello').element() // ✅ [HTMLElement, HTMLElement]
911+
page.getByText('Hello').elements() // ✅ [HTMLElement, HTMLElement]
912912
page.getByText('Hello USA').elements() // ✅ []
913913
```
914914

0 commit comments

Comments
 (0)