docs(python): fix missing await in JS evaluation example (#14426)
This commit is contained in:
parent
bb2d7cb9ad
commit
3030d97b2b
|
|
@ -54,7 +54,7 @@ status = await page.evaluate("""async () => {
|
|||
|
||||
```python sync
|
||||
status = page.evaluate("""async () => {
|
||||
response = fetch(location.href)
|
||||
response = await fetch(location.href)
|
||||
return response.status
|
||||
}""")
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue