-
Notifications
You must be signed in to change notification settings - Fork 572
Conversation
@@ -3,6 +3,7 @@ import ChromeRemote from './chrome/remote' | |||
import Queue from './queue' | |||
import { ChromelessOptions, Cookie, CookieQuery, PdfOptions } from './types' | |||
import { getDebugOption } from './util' | |||
import {isArray} from "util"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use single quotes & no semicolon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- white space around braces
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry... auto import :/
@@ -31,6 +31,7 @@ import { | |||
mousedown, | |||
mouseup, | |||
focus, | |||
upload |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a trailing slash
@@ -274,6 +275,14 @@ export default class Chromeless<T extends any> implements Promise<T> { | |||
return this | |||
} | |||
|
|||
upload(selector: string, files: string[] | string): Chromeless<T> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the name upload
is a bit misleading since all this is doing is selecting files in a file input. Maybe rather use selectFile
instead?
I think the name Open for discussion! |
Hello @schickling, selectFile and selectFiles ? |
closing this one due to #170 |
Closes #100