docs(api.md): Fix typo (#3273)

This commit is contained in:
xcatliu 2018-09-19 20:58:04 +08:00 committed by Andrey Lushnikov
parent b97bddf8e5
commit 27477a1d79

View File

@ -1371,7 +1371,7 @@ The `page.goto` will throw an error if:
- returns: <[Promise]> Promise which resolves when the element matching `selector` is successfully hovered. Promise gets rejected if there's no element matching `selector`.
This method fetches an element with `selector`, scrolls it into view if needed, and then uses [page.mouse](#pagemouse) to hover over the center of the element.
If a there's no element matching `selector`, the method throws an error.
If there's no element matching `selector`, the method throws an error.
Shortcut for [page.mainFrame().hover(selector)](#framehoverselector).