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 syntax error in locator filter options constructor (#38504)

Ran Meng0dfe46b235ee
diff --git a/docs/src/locators.md b/docs/src/locators.md
index dc59495729..5ff7e91e81 100644
--- a/docs/src/locators.md
+++ b/docs/src/locators.md
@@ -1313,7 +1313,7 @@ Consider a page with two buttons, the first invisible and the second [visible](.
await page.locator('button').filter({ visible: true }).click();
```
```java
- page.locator("button").filter(new Locator.FilterOptions.setVisible(true)).click();
+ page.locator("button").filter(new Locator.FilterOptions().setVisible(true)).click();
```
```python async
await page.locator("button").filter(visible=True).click()