mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
Implement Frame.evaluate
This patch implements Frame.evaluate method. References #4.
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
- [dialog.message()](#dialogmessage)
|
||||
+ [class: Frame](#class-frame)
|
||||
- [frame.childFrames()](#framechildframes)
|
||||
- [frame.evaluate(fun, args)](#frameevaluatefun-args)
|
||||
- [frame.isDetached()](#frameisdetached)
|
||||
- [frame.isMainFrame()](#frameismainframe)
|
||||
- [frame.name()](#framename)
|
||||
@@ -239,6 +240,12 @@ Pages could be closed by `page.close()` method.
|
||||
|
||||
#### frame.childFrames()
|
||||
|
||||
#### frame.evaluate(fun, args)
|
||||
|
||||
- `fun` <[function]> Function to be evaluated in browser context
|
||||
- `args` <[Array]<[string]>> Arguments to pass to `fun`
|
||||
- returns: <[Promise]<[Object]>> Promise which resolves to function return value
|
||||
|
||||
#### frame.isDetached()
|
||||
|
||||
#### frame.isMainFrame()
|
||||
|
||||
Reference in New Issue
Block a user