mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs(api.md): fix typo on api docs (#1849)
This commit is contained in:
parent
e031264231
commit
d2715d1c6f
@ -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)
|
||||
|
||||
@ -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]>
|
||||
@ -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]>
|
||||
|
Loading…
Reference in New Issue
Block a user