docs(uploads): fix typo
This commit is contained in:
parent
77f1a70332
commit
ae6b1ba7ce
|
|
@ -73,9 +73,9 @@ Note that handling the event forks the control flow and makes script harder to f
|
|||
## Handle file downloads
|
||||
|
||||
```js
|
||||
const [ dowload ] = await Promise.all([
|
||||
page.waitForEvent('dowload'), // <-- start waiting for the download
|
||||
page.click('button#delayed-dowload') // <-- perform the action that directly or indirectly initiates it.
|
||||
const [ download ] = await Promise.all([
|
||||
page.waitForEvent('download'), // <-- start waiting for the download
|
||||
page.click('button#delayed-download') // <-- perform the action that directly or indirectly initiates it.
|
||||
]);
|
||||
const path = await download.path();
|
||||
```
|
||||
|
|
@ -99,4 +99,4 @@ Note that handling the event forks the control flow and makes script harder to f
|
|||
- [`page.waitForEvent(event)`](https://github.com/microsoft/playwright/blob/master/docs/api.md##pagewaitforeventevent-optionsorpredicate)
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue