diff --git a/docs/api.md b/docs/api.md index 657e84106f5..830e69d9798 100644 --- a/docs/api.md +++ b/docs/api.md @@ -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]> 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]>