Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs: fix multiple syntax errors in locator filters example (#38536)

Ran Meng425e45a4aaa6
diff --git a/docs/src/locators.md b/docs/src/locators.md
index 5ff7e91e81..a556162368 100644
--- a/docs/src/locators.md
+++ b/docs/src/locators.md
@@ -1031,9 +1031,9 @@ await expect(page
assertThat(page
.getByRole(AriaRole.LISTITEM)
.filter(new Locator.FilterOptions()
- .setHas(page.GetByRole(AriaRole.LIST)
- .GetByRole(AriaRole.HEADING,
- new Page.GetByRoleOptions().setName("Product 2")))))
+ .setHas(page.getByRole(AriaRole.LIST)
+ .getByRole(AriaRole.HEADING,
+ new Locator.GetByRoleOptions().setName("Product 2")))))
.hasCount(1);
```