chore(doc): add a note about using ElementHandle instances (#925)

This commit is contained in:
Vse Mozhet Byt 2017-10-02 01:47:40 +03:00 committed by Andrey Lushnikov
parent 215b3497c7
commit f9640a5498

View File

@ -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`.