mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs(api.md): fix some links (#2253)
This commit is contained in:
parent
d46e157f19
commit
9af02a0d86
@ -667,7 +667,7 @@ Shortcut for [page.mainFrame().$eval(selector, pageFunction)](#frameevalselector
|
|||||||
|
|
||||||
The method evaluates the XPath expression.
|
The method evaluates the XPath expression.
|
||||||
|
|
||||||
Shortcut for [page.mainFrame().$x(expression)](#frameexpression)
|
Shortcut for [page.mainFrame().$x(expression)](#framexexpression)
|
||||||
|
|
||||||
#### page.addScriptTag(options)
|
#### page.addScriptTag(options)
|
||||||
- `options` <[Object]>
|
- `options` <[Object]>
|
||||||
@ -1915,7 +1915,7 @@ Returns frame's url.
|
|||||||
|
|
||||||
This method behaves differently with respect to the type of the first parameter:
|
This method behaves differently with respect to the type of the first parameter:
|
||||||
- if `selectorOrFunctionOrTimeout` is a `string`, then the first argument is treated as a [selector] or [xpath], depending on whether or not it starts with '//', and the method is a shortcut for
|
- if `selectorOrFunctionOrTimeout` is a `string`, then the first argument is treated as a [selector] or [xpath], depending on whether or not it starts with '//', and the method is a shortcut for
|
||||||
[frame.waitForSelector](#framewaitforselectorselector-options) or [frame.waitForXPath](#framewaitforsxpathxpath-options)
|
[frame.waitForSelector](#framewaitforselectorselector-options) or [frame.waitForXPath](#framewaitforxpathxpath-options)
|
||||||
- if `selectorOrFunctionOrTimeout` is a `function`, then the first argument is treated as a predicate to wait for and the method is a shortcut for [frame.waitForFunction()](#framewaitforfunctionpagefunction-options-args).
|
- if `selectorOrFunctionOrTimeout` is a `function`, then the first argument is treated as a predicate to wait for and the method is a shortcut for [frame.waitForFunction()](#framewaitforfunctionpagefunction-options-args).
|
||||||
- if `selectorOrFunctionOrTimeout` is a `number`, then the first argument is treated as a timeout in milliseconds and the method returns a promise which resolves after the timeout
|
- if `selectorOrFunctionOrTimeout` is a `number`, then the first argument is treated as a timeout in milliseconds and the method returns a promise which resolves after the timeout
|
||||||
- otherwise, an exception is thrown
|
- otherwise, an exception is thrown
|
||||||
|
Loading…
Reference in New Issue
Block a user