Skip to content

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

docs(selector): change Python textContent to text_content (#9440)

knaitascfe75fc755ec
diff --git a/docs/src/selectors.md b/docs/src/selectors.md
index af5e66bee9..b99752ca02 100644
--- a/docs/src/selectors.md
+++ b/docs/src/selectors.md
@@ -490,11 +490,11 @@ page.textContent("article:has(div.promo)");
```
```python async
-await page.textContent("article:has(div.promo)")
+await page.text_content("article:has(div.promo)")
```
```python sync
-page.textContent("article:has(div.promo)")
+page.text_content("article:has(div.promo)")
```
```csharp