docs: fix frame locator docs for python sync (#11689)

This commit is contained in:
Meir Blachman 2022-01-28 17:41:13 +02:00 committed by GitHub
parent 135280de79
commit 5cbedf8823
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -418,7 +418,7 @@ await locator.click()
```
```python sync
locator = page.frame_locator("text=Submit").locator("text=Submit")
locator = page.frame_locator("iframe").locator("text=Submit")
locator.click()
```