mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs: nit fixes (#10805)
This commit is contained in:
parent
e9d0b5ee1d
commit
04aa38a663
@ -41,10 +41,10 @@ await page.frameLocator('.result-frame').first().locator('button').click();
|
|||||||
|
|
||||||
```python async
|
```python async
|
||||||
# Throws if there are several frames in DOM:
|
# 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:
|
# 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
|
```python sync
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: frames
|
id: frames
|
||||||
title: "Pages and frames"
|
title: "Frames"
|
||||||
---
|
---
|
||||||
|
|
||||||
<!-- TOC -->
|
<!-- TOC -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user