import { browser , element , by , Key } from 'protractor' ; export class RealTimeStatsPage { getTitle ( ) { const titleElement = element ( by . css ( '.clearfix h2' ) ) ; if ( titleElement . isPresent ) { return titleElement . getText ( ) ; } } }