From 16e1499dbe64c21bafbee295bef355a2f3d0ae6b Mon Sep 17 00:00:00 2001 From: "R.Frega" Date: Sun, 20 Aug 2017 23:54:05 -0300 Subject: [PATCH] doc: fix typo (#431) --- docs/api.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api.md b/docs/api.md index d0ca9fdad8b..8e77d8a5abf 100644 --- a/docs/api.md +++ b/docs/api.md @@ -922,13 +922,13 @@ puppeteer.launch().then(async browser => { #### dialog.accept([promptText]) - `promptText` <[string]> A text to enter in prompt. Does not cause any effects if the dialog's `type` is not prompt. -- returns: <[Promise]> Promise which resolves when the dialog has being accepted. +- returns: <[Promise]> Promise which resolves when the dialog has been accepted. #### dialog.defaultValue() - returns: <[string]> If dialog is prompt, returns default prompt value. Otherwise, returns empty string. #### dialog.dismiss() -- returns: <[Promise]> Promise which resolves when the dialog has being dismissed. +- returns: <[Promise]> Promise which resolves when the dialog has been dismissed. #### dialog.message() - returns: <[string]> A message displayed in the dialog. @@ -1015,7 +1015,7 @@ console.log(await page.mainFrame().evaluate('1 + 2')); // prints "3" #### frame.isDetached() - returns: <[boolean]> -Returns `true` if the frame has being detached, or `false` otherwise. +Returns `true` if the frame has been detached, or `false` otherwise. #### frame.name() - returns: <[string]>