File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ type TDeviceCaps = {
4040 username ?: string ;
4141 password ?: string ;
4242 } ;
43+ navigationTimeout ?: number ;
4344} ;
4445
4546class Playwright extends DriverBase {
@@ -144,6 +145,9 @@ class Playwright extends DriverBase {
144145 const browserContext = await this . browser . newContext ( newContextOptions ) ;
145146 browserContext . name = contextName ;
146147 browserContext . index = index ;
148+ if ( typeof this . args . navigationTimeout === 'number' ) {
149+ browserContext . setDefaultNavigationTimeout ( this . args . navigationTimeout ) ;
150+ }
147151 this . browserContexts . push ( browserContext ) ;
148152 this . browserContext = this . browserContexts [ index ] ;
149153 this . pages . push ( await this . browserContext . newPage ( ) ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " macaca-playwright" ,
3- "version" : " 1.11.20 " ,
3+ "version" : " 1.12.0 " ,
44 "description" : " Macaca Playwright driver" ,
55 "keywords" : [
66 " playwright" ,
You can’t perform that action at this time.
0 commit comments