angular - Having trouble clicking .mat-simple-snackbar-action using protractor -
i using angular 4 angular material 2.0.0-beta.8. i'm using snackbar action. checked snackbar source , looks this:
<button class="mat-simple-snackbar-action" *ngif="hasaction" (click)="action()">{{data.action}}</button>
in protractor test first triggers snackbar. run code click on action button on snackbar:
const submit = element(by.css('.mat-simple-snackbar-action')); submit.click();
i error
failed: element not visible (session info: chrome=59.0.3071.115) (driver info: chromedriver=2.31.488763 (092de99f48a300323ecf8c2a4e2e7cab51de5ba8),platform=windows nt 10.0.15 063 x86_64)
any 1 encountered issue , found solution?
Comments
Post a Comment