@@ -313,15 +313,16 @@ class MyEformsRowObject {
313313 this . addPairEformBtn = await ( await $$ ( `#mainPageEFormsTableBody tr.mat-mdc-row` ) ) [
314314 currentPosition
315315 ] . $ ( '#eform-add-btn-' + ( currentPosition ) ) ;
316- this . editColumnsBtn = ( await $$ ( '#edit-columnts -btn-' + ( currentPosition ) ) ) [ 0 ] ;
317- this . deleteBtn = await this . element . $ ( '.mat-column-actions [id^=" delete-eform-btn"]' ) ;
318- this . uploadZipArchiveBtn = ( await $$ ( '#upload-zip-btn-' + ( currentPosition ) ) ) [ 0 ] ;
319- this . goVisualEditorBtn = await this . element . $ ( '.mat-column-actions [id^=" edit-eform-btn"]' ) ;
316+ this . editColumnsBtn = await $ ( '#edit-columns -btn-' + ( currentPosition ) ) ;
317+ this . deleteBtn = await $ ( '# delete-eform-btn-' + ( currentPosition ) ) ;
318+ this . uploadZipArchiveBtn = await $ ( '#upload-zip-btn-' + ( currentPosition ) ) ;
319+ this . goVisualEditorBtn = await $ ( '# edit-eform-btn-' + ( currentPosition ) ) ;
320320 return this ;
321321 }
322322
323323 async deleteEForm ( ) {
324324 if ( await this . deleteBtn ) {
325+ await this . clickActionsMenu ( ) ;
325326 await ( await this . deleteBtn ) . scrollIntoView ( ) ;
326327 await ( await this . deleteBtn ) . waitForClickable ( { timeout : 40000 } ) ;
327328 await ( await this . deleteBtn ) . click ( ) ;
@@ -334,6 +335,12 @@ class MyEformsRowObject {
334335 }
335336 }
336337
338+ private async clickActionsMenu ( ) {
339+ await browser . pause ( 1000 ) ;
340+ await ( await $$ ( '#actionMenu' ) ) [ 0 ] . click ( ) ;
341+ await browser . pause ( 1000 ) ;
342+ }
343+
337344 async addTag ( tag : string ) {
338345 await this . editTagsBtn . waitForClickable ( { timeout : 40000 } ) ;
339346 await this . editTagsBtn . click ( ) ;
@@ -422,6 +429,7 @@ class MyEformsRowObject {
422429 }
423430
424431 async goToVisualEditor ( ) {
432+ await this . clickActionsMenu ( ) ;
425433 await this . goVisualEditorBtn . click ( ) ;
426434 await browser . pause ( 500 ) ;
427435 await ( await $ ( '#manageTags' ) ) . waitForClickable ( { timeout : 40000 } ) ;
0 commit comments