docs(uploads): fix typo

This commit is contained in:
Arjun Attam 2020-04-16 11:55:11 -07:00 committed by GitHub
parent 77f1a70332
commit ae6b1ba7ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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/>