import { by , element , ElementFinder } from 'protractor' ; import { ILocation , promise } from 'selenium-webdriver' ; import { AppPage } from './app.po' ; export class TranslatedTargetScrollPage extends AppPage { getPath ( ) { return '/translated' ; } triggerUntranslatedTargetButton ( ) { return this . triggerAButton ( by . css ( 'button[href="#untranslated"]' ) ) ; } triggerTranslatedTargetButton ( ) { return this . triggerAButton ( by . css ( 'button[href="#translated"]' ) ) ; } getTranslatedTargetLocation ( ) { return element ( by . css ( '#translated' ) ) . getLocation ( ) ; } getUntranslatedTargetLocation ( ) { return element ( by . css ( '#untranslated' ) ) . getLocation ( ) ; } }