import { $ , browser , ElementFinder } from 'protractor' ; export class AlertTestPage { async getPage ( ) { await browser . get ( '#/alert' ) ; } getAlert ( id ) { return $ ( `#${ id }` ) ; } async clickDismiss ( id ) { return await this . getAlert ( id ) . $ ( '.alert-close' ) . click ( ) ; } }