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 python example for Locator.last (#23378)

retrowaver7638b4bb7641
diff --git a/docs/src/api/class-locator.md b/docs/src/api/class-locator.md
index 34f554f716..d489c84071 100644
--- a/docs/src/api/class-locator.md
+++ b/docs/src/api/class-locator.md
@@ -1488,11 +1488,11 @@ const banana = await page.getByRole('listitem').last();
```
```python async
-banana = await page.get_by_role("listitem").last()
+banana = await page.get_by_role("listitem").last
```
```python sync
-banana = page.get_by_role("listitem").last()
+banana = page.get_by_role("listitem").last
```
```java