doc: change ambiguous phrase in api.md (#410)

This commit is contained in:
Vse Mozhet Byt 2017-08-21 02:44:52 +03:00 committed by Andrey Lushnikov
parent 292c7a237f
commit 281db8fecc

View File

@ -1138,7 +1138,7 @@ The `elementHandle.dispose` method stops referencing the element handle.
- returns: <[Promise]<[Serializable]>> Promise which resolves to function return value - returns: <[Promise]<[Serializable]>> Promise which resolves to function return value
If the function, passed to the `elementHandle.evaluate`, returns a [Promise], then `elementHandle.evaluate` would wait for the promise to resolve and return it's value. If the function, passed to the `elementHandle.evaluate`, returns a [Promise], then `elementHandle.evaluate` would wait for the promise to resolve and return it's value.
The function will be passed in the element ifself as a first argument. The element will be passed as the first argument to `pageFunction`, followed by any `args`.
#### elementHandle.hover() #### elementHandle.hover()
- returns: <[Promise]> Promise which resolves when the element is successfully hovered. - returns: <[Promise]> Promise which resolves when the element is successfully hovered.