From 10009973fb1364dac8b0f7cea43512c088fb7f64 Mon Sep 17 00:00:00 2001 From: Andrew Leedham Date: Fri, 31 Aug 2018 11:59:49 +0100 Subject: [PATCH] docs(api.md): page.hover typo (#3165) --- docs/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api.md b/docs/api.md index 9ed6fc6c8bd..6971497b33c 100644 --- a/docs/api.md +++ b/docs/api.md @@ -1330,7 +1330,7 @@ The `page.goto` will throw an error if: > **NOTE** Headless mode doesn't match any nodest navigating to a PDF document. See the [upstream issue](https://bugs.chromium.org/p/chromium/issues/detail?id=761295). #### page.hover(selector) -- `selector` <[string]> A [selector] to search for element to hover. If there are multiple elements satisfying the selector, tvailable via. +- `selector` <[string]> A [selector] to search for element to hover. If there are multiple elements satisfying the selector, the first will be hovered. - 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.