docs(python): fix wrong code snippet to get pages (#11260)
This commit is contained in:
parent
dc07fa6da6
commit
913edf9bdb
|
|
@ -114,7 +114,7 @@ page_one = await context.new_page()
|
||||||
page_two = await context.new_page()
|
page_two = await context.new_page()
|
||||||
|
|
||||||
# get pages of a browser context
|
# get pages of a browser context
|
||||||
all_pages = context.pages()
|
all_pages = context.pages
|
||||||
```
|
```
|
||||||
|
|
||||||
```python sync
|
```python sync
|
||||||
|
|
@ -123,7 +123,7 @@ page_one = context.new_page()
|
||||||
page_two = context.new_page()
|
page_two = context.new_page()
|
||||||
|
|
||||||
# get pages of a browser context
|
# get pages of a browser context
|
||||||
all_pages = context.pages()
|
all_pages = context.pages
|
||||||
```
|
```
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue