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 another Java compilation error in Locator chaining example (#38403)

Ran Meng76a57c2807ae
diff --git a/docs/src/locators.md b/docs/src/locators.md
index 4907f3451f..9e4bc42a8b 100644
--- a/docs/src/locators.md
+++ b/docs/src/locators.md
@@ -858,7 +858,7 @@ page.getByRole(AriaRole.LISTITEM)
.filter(new Locator.FilterOptions()
.setHasText(Pattern.compile("Product 2")))
.getByRole(AriaRole.BUTTON,
- new Page.GetByRoleOptions().setName("Add to cart"))
+ new Locator.GetByRoleOptions().setName("Add to cart"))
.click();
```