mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
jsdoc
This commit is contained in:
parent
b27729d8aa
commit
59a62e46f3
@ -570,6 +570,11 @@ class Page extends EventEmitter {
|
||||
return this.mainFrame().waitFor(selector);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} selector
|
||||
* @param {!Array<string>} filePaths
|
||||
* @return {!Promise}
|
||||
*/
|
||||
async uploadFile(selector, ...filePaths) {
|
||||
await this._client.send('DOM.setFileInputFiles', {
|
||||
nodeId: await this._querySelector(selector),
|
||||
|
@ -334,7 +334,7 @@ class WebPage {
|
||||
|
||||
/**
|
||||
* @param {string} selector
|
||||
* @param {string|!Array<string>} files
|
||||
* @param {(string|!Array<string>)} files
|
||||
*/
|
||||
uploadFile(selector, files) {
|
||||
if (typeof files === 'string')
|
||||
|
Loading…
Reference in New Issue
Block a user