docs(api): queryObjects returns a Promise<JSHandle> (#1053)

This commit is contained in:
Christopher Deutsch 2017-10-16 19:11:05 -05:00 committed by Andrey Lushnikov
parent a73a67447e
commit aebbcf21e8

View File

@ -826,7 +826,7 @@ The `format` options are:
#### page.queryObjects(prototypeHandle)
- `prototypeHandle` <[JSHandle]> A handle to the object prototype.
- returns: <[JSHandle]> A handle to an array of objects with this prototype
- returns: <[Promise]<[JSHandle]>> Promise which resolves to a handle to an array of objects with this prototype.
The method iterates javascript heap and finds all the objects with the given prototype.