chore(doc): add a note about using ElementHandle instances (#925)
This commit is contained in:
parent
215b3497c7
commit
f9640a5498
@ -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`.
|
||||
|
Loading…
Reference in New Issue
Block a user