From 7bc55ab7fd3e5565dce844620e0ce8df755d1ad7 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Fri, 3 Nov 2017 18:32:17 +0200 Subject: [PATCH] docs(api.md): fix return values of page.add*Tag() (#1269) --- docs/api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api.md b/docs/api.md index bc36b2e76a8..b2c9a79e17e 100644 --- a/docs/api.md +++ b/docs/api.md @@ -492,7 +492,7 @@ Shortcut for [page.mainFrame().$eval(selector, pageFunction)](#frameevalselector - `url` <[string]> Url of a script to be added. - `path` <[string]> Path to the JavaScript file to be injected into frame. If `path` is a relative path, then it is resolved relative to [current working directory](https://nodejs.org/api/process.html#process_process_cwd). - `content` <[string]> Raw JavaScript content to be injected into frame. -- returns: <[Promise]> which resolves when the script's onload fires or when the script content was injected into frame. +- returns: <[Promise]<[ElementHandle]>> which resolves to the added tag when the script's onload fires or when the script content was injected into frame. Adds a `