From f9640a5498b8fb2f31e6686aa1873bb479f6c785 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Mon, 2 Oct 2017 01:47:40 +0300 Subject: [PATCH] chore(doc): add a note about using ElementHandle instances (#925) --- docs/api.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/api.md b/docs/api.md index 29a4a605df3..78454d0ead9 100644 --- a/docs/api.md +++ b/docs/api.md @@ -1315,6 +1315,8 @@ puppeteer.launch().then(async browser => { ElementHandle prevents DOM element from garbage collection unless the handle is [disposed](#elementhandledispose). ElementHandles are auto-disposed when their origin frame gets navigated. +ElementHandle instances can be used as arguments in [`page.$eval()`](#pageevalselector-pagefunction-args) and [`page.evaluate()`](#pageevaluatepagefunction-args) methods. + #### elementHandle.click([options]) - `options` <[Object]> - `button` <[string]> `left`, `right`, or `middle`, defaults to `left`.