From ae6b1ba7ce5ccfbedea6c434615a0379c0dff014 Mon Sep 17 00:00:00 2001 From: Arjun Attam Date: Thu, 16 Apr 2020 11:55:11 -0700 Subject: [PATCH] docs(uploads): fix typo --- docs/uploadDownload.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/uploadDownload.md b/docs/uploadDownload.md index 2aff42a2c6..398716553e 100644 --- a/docs/uploadDownload.md +++ b/docs/uploadDownload.md @@ -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)
-
\ No newline at end of file +