import { by , element } from 'protractor' ; import { AppPage } from './app.po' ; import { promise } from 'selenium-webdriver' ; export class HomePage extends AppPage { getPath ( ) { return '/' ; } getTitleText ( ) { return element ( by . css ( '#title' ) ) . getText ( ) ; } }