File tree Expand file tree Collapse file tree
test/e2e/page-objects/pages/bridge Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -240,7 +240,10 @@ class BridgeQuotePage {
240240 timeout : 60000 ,
241241 } ) ;
242242 console . log ( 'Transaction complete modal is displayed' ) ;
243- await this . driver . clickElement ( this . closeButton ) ;
243+ const closeButton = await this . driver . waitForSelector ( this . closeButton , {
244+ timeout : 60000 ,
245+ } ) ;
246+ await closeButton . click ( ) ;
244247 console . log ( 'Clicked View activity button' ) ;
245248 } ;
246249
@@ -250,7 +253,10 @@ class BridgeQuotePage {
250253 timeout : 60000 ,
251254 } ) ;
252255 console . log ( 'Transaction failed modal is displayed' ) ;
253- await this . driver . clickElement ( this . closeButton ) ;
256+ const closeButton = await this . driver . waitForSelector ( this . closeButton , {
257+ timeout : 60000 ,
258+ } ) ;
259+ await closeButton . click ( ) ;
254260 console . log ( 'Clicked View activity button' ) ;
255261 } ;
256262
You can’t perform that action at this time.
0 commit comments