docs: fix typos in some snippets (#18966)

Fixes #18898.
This commit is contained in:
Dmitry Gozman 2022-11-21 10:47:38 -08:00 committed by GitHub
parent 620e8547d4
commit d6ab1a90bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -494,17 +494,17 @@ boolean divCounts = (boolean) elements.evaluateAll("(divs, min) => divs.length >
```python async
elements = page.locator("div")
div_counts = await elements("(divs, min) => divs.length >= min", 10)
div_counts = await elements.evaluate_all("(divs, min) => divs.length >= min", 10)
```
```python sync
elements = page.locator("div")
div_counts = elements("(divs, min) => divs.length >= min", 10)
div_counts = elements.evaluate_all("(divs, min) => divs.length >= min", 10)
```
```csharp
var elements = page.Locator("div");
var divsCount = await elements.EvaluateAll<bool>("(divs, min) => divs.length >= min", 10);
var divsCount = await elements.EvaluateAllAsync<bool>("(divs, min) => divs.length >= min", 10);
```
### param: Locator.evaluateAll.expression = %%-evaluate-expression-%%