File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -340,13 +340,17 @@ const callChrome = async pup => {
340340 if ( request . options && request . options . locatorClicks ) {
341341 for ( let i = 0 , len = request . options . locatorClicks . length ; i < len ; i ++ ) {
342342 let clickOptions = request . options . locatorClicks [ i ] ;
343- await page . locator ( clickOptions . selector ) . click ( {
344- 'button' : clickOptions . button ,
345- 'clickCount' : clickOptions . clickCount ,
346- 'delay' : clickOptions . delay ,
347- } ) ;
343+ try {
344+ await page . locator ( clickOptions . selector ) . click ( {
345+ 'button' : clickOptions . button ,
346+ 'clickCount' : clickOptions . clickCount ,
347+ 'delay' : clickOptions . delay ,
348+ } ) ;
349+ } catch ( error ) {
350+ console . error ( 'Timeout error:' , error ) ;
351+ }
348352 }
349- }
353+ }
350354
351355 if ( request . options && request . options . addStyleTag ) {
352356 await page . addStyleTag ( JSON . parse ( request . options . addStyleTag ) ) ;
You can’t perform that action at this time.
0 commit comments