docs: fix broken links in API (#144)

This patch fixes links in api.md.
This commit is contained in:
Will Chen 2017-07-26 15:06:23 -07:00 committed by Andrey Lushnikov
parent 2e6751d6f5
commit 7a482c5697

View File

@ -502,7 +502,7 @@ The `format` options are:
- `text` <[string]> If specified, generates an input event with this text.
- returns: <[Promise]>
Shortcut for [`keyboard.down`](#keyboarddownkey) and [`keyboard.up`](#keyboardupkey).
Shortcut for [`keyboard.down`](#keyboarddownkey-options) and [`keyboard.up`](#keyboardupkey).
#### page.reload(options)
- `options` <[Object]> Navigation parameters which might have the following properties:
@ -632,11 +632,11 @@ This is a shortcut for [page.mainFrame().url()](#frameurl)
- returns: <[Promise]>
This method behaves differently with respect to the type of the first parameter:
- if `selectorOrTimeout` is a `string`, than the first argument is treated as a selector to wait for and the method is a shortcut for [frame.waitForSelector](#framewaitforselectorselectoroptions)
- if `selectorOrTimeout` is a `string`, than the first argument is treated as a selector to wait for and the method is a shortcut for [frame.waitForSelector](#framewaitforselectorselector-options)
- if `selectorOrTimeout` is a `number`, than 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
The method is a shortcut for [page.mainFrame().waitFor()](#framewaitfortargetoptions).
The method is a shortcut for [page.mainFrame().waitFor()](#framewaitforselectorortimeout-options).
#### page.waitForNavigation(options)
- `options` <[Object]> Navigation parameters which might have the following properties: