import { browser , by , element , $ , $$ , ExpectedConditions } from 'protractor' ; export class DeleteAccountPage { getDeleteAccountButton ( ) { return $$ ( 'button' ) . filter ( button => button . getText ( ) . then ( text => text === 'Delete Account' ) ) ; } getConfirmDeleteAccountButton ( ) { return $$ ( 'button' ) . filter ( button => button . getText ( ) . then ( text => text === 'Yes' ) ) ; } }