import { by } from 'protractor' ; import { promise } from 'selenium-webdriver' ; import { AppPage } from './app.po' ; export class PathologicalTestsPage extends AppPage { getPath ( ) { return '/tests' ; } triggerInterruptScrollButton ( ) { return this . triggerAButton ( by . css ( '#interruptScroll' ) ) ; } triggerNonExistingTargetButton ( ) { return this . triggerAButton ( by . css ( '#nonExistingTargetButton' ) ) ; } triggerAlreadyAtTargetButton ( ) { return this . triggerAButton ( by . css ( '#alreadyAtTargetScroll' ) ) ; } getScrollTargetVerticalPosition ( ) { return this . getVerticalPosition ( by . css ( '#scrollTarget' ) ) ; } }