File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
packages/playwright-core/src/server/firefox Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -544,15 +544,13 @@ export class FFPage implements PageDelegate {
544
544
}
545
545
546
546
async setInputFilePaths ( progress : Progress , handle : dom . ElementHandle < HTMLInputElement > , files : string [ ] ) : Promise < void > {
547
- await Promise . all ( [
548
- this . _session . send ( 'Page.setFileInputFiles' , {
549
- frameId : handle . _context . frame . _id ,
550
- objectId : handle . _objectId ,
551
- files
552
- } ) ,
553
- handle . dispatchEvent ( progress . metadata , 'input' ) ,
554
- handle . dispatchEvent ( progress . metadata , 'change' )
555
- ] ) ;
547
+ await this . _session . send ( 'Page.setFileInputFiles' , {
548
+ frameId : handle . _context . frame . _id ,
549
+ objectId : handle . _objectId ,
550
+ files
551
+ } ) ;
552
+ await handle . dispatchEvent ( progress . metadata , 'input' ) ;
553
+ await handle . dispatchEvent ( progress . metadata , 'change' ) ;
556
554
}
557
555
558
556
async adoptElementHandle < T extends Node > ( handle : dom . ElementHandle < T > , to : dom . FrameExecutionContext ) : Promise < dom . ElementHandle < T > > {
You can’t perform that action at this time.
0 commit comments