docs: nit fixes (#10805)

This commit is contained in:
Pavel Feldman 2021-12-08 12:49:50 -08:00 committed by GitHub
parent e9d0b5ee1d
commit 04aa38a663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -41,10 +41,10 @@ await page.frameLocator('.result-frame').first().locator('button').click();
```python async
# Throws if there are several frames in DOM:
await page.frame_locator('.result-frame').locator('button')..click()
await page.frame_locator('.result-frame').locator('button').click()
# Works because we explicitly tell locator to pick the first frame:
await page.frame_locator('.result-frame').first.locator('button')..click()
await page.frame_locator('.result-frame').first.locator('button').click()
```
```python sync

View File

@ -1,6 +1,6 @@
---
id: frames
title: "Pages and frames"
title: "Frames"
---
<!-- TOC -->