Skip to content

Commit

Permalink
docs(api.md): fix return type docs of ElementHandle.$x (#2723)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksm2 authored and aslushnikov committed Jun 14, 2018
1 parent d481fd5 commit 1875cb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2464,9 +2464,9 @@ expect(await tweetHandle.$eval('.retweets', node => node.innerText)).toBe('10');
#### elementHandle.$x(expression)
- `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.
- returns: <[Promise]<[Array]<[ElementHandle]>>>
The method evaluates 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 are no such elements, the method will resolve to an empty array.
#### elementHandle.asElement()
- returns: <[elementhandle]>
Expand Down

0 comments on commit 1875cb4

Please sign in to comment.