import { browser , by , element } from 'protractor' ; export class AppPage { EVENT_ID_1 = 'ak20419010' ; EVENT_ID_2 = 'ci38474368' ; EVENT_ID_3 = 'us7000asvb' ; getMainPageHeaderTitle ( ) { return this . select ( 'main > header > h1' ) . getText ( ) ; } getPageSectionTitle ( ) { return this . select ( '.product-page-header > h2' ) . getText ( ) ; } getUnknownPageHeaderTitle ( ) { return this . select ( 'h1' ) . getText ( ) ; } navigateTo ( path = '/' ) { return browser . get ( path ) ; } select ( selector ) { return element ( by . css ( selector ) ) ; } }