docs(api.md): Slightly enhanced wording (#4631)

This commit is contained in:
Marc Jansen 2019-06-29 13:58:27 +02:00 committed by Andrey Lushnikov
parent a069a1203d
commit 492132f9b0

View File

@ -3230,7 +3230,7 @@ await elementHandle.press('Enter');
``` ```
#### elementHandle.uploadFile(...filePaths) #### elementHandle.uploadFile(...filePaths)
- `...filePaths` <...[string]> Sets the value of the file input these paths. If some of the `filePaths` are relative paths, then they are resolved relative to [current working directory](https://nodejs.org/api/process.html#process_process_cwd). - `...filePaths` <...[string]> Sets the value of the file input to these paths. If some of the `filePaths` are relative paths, then they are resolved relative to the [current working directory](https://nodejs.org/api/process.html#process_process_cwd).
- returns: <[Promise]> - returns: <[Promise]>
This method expects `elementHandle` to point to an [input element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input). This method expects `elementHandle` to point to an [input element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input).