Skip to content

Commit

Permalink
docs(api.md): fix typo on api docs (#1849)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonyarianto authored and aslushnikov committed Jan 19, 2018
1 parent e031264 commit d2715d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ Shortcut for [page.mainFrame().$eval(selector, pageFunction)](#frameevalselector
- `expression` <[string]> Expression to [evaluate](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate).
- returns: <[Promise]<[Array]<[ElementHandle]>>>

The method evluates the XPath expression.
The method evaluates the XPath expression.

Shortcut for [page.mainFrame().$x(expression)](#frameexpression)

Expand Down Expand Up @@ -1568,7 +1568,7 @@ const html = await frame.$eval('.main-container', e => e.outerHTML);
- `expression` <[string]> Expression to [evaluate](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate).
- returns: <[Promise]<[Array]<[ElementHandle]>>>

The method evluates the XPath expression.
The method evaluates the XPath expression.

#### frame.addScriptTag(options)
- `options` <[Object]>
Expand Down Expand Up @@ -1910,7 +1910,7 @@ The method runs `element.querySelectorAll` within the page. If no elements match
- `expression` <[string]> Expression to [evaluate](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate).
- returns: <[Promise]<?[ElementHandle]>> Promise which resolves to ElementHandle pointing to the frame element.

The method evluates the XPath expression relative to the elementHandle. If there's no such element, the method will resolve to `null`.
The method evaluates the XPath expression relative to the elementHandle. If there's no such element, the method will resolve to `null`.

#### elementHandle.asElement()
- returns: <[elementhandle]>
Expand Down

0 comments on commit d2715d1

Please sign in to comment.