docs(api.md): fix return type docs of ElementHandle.$x (#2723)
This commit is contained in:
parent
d481fd5147
commit
1875cb4877
@ -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]>
|
||||
|
Loading…
Reference in New Issue
Block a user