import { by } from 'protractor' ; import { promise } from 'selenium-webdriver' ; import { AppPage } from './app.po' ; export class NestedScrollPage extends AppPage { getPath ( ) { return '/nested' ; } triggerNestedScrollButton ( ) { return this . triggerAButton ( by . css ( '#startNestedScrollingButton' ) ) ; } triggerNestedScrollButton2 ( ) { return this . triggerAButton ( by . css ( '#startNestedScrollingButton2' ) ) ; } getBasicScrollTargetOffsetTop ( ) { return this . getOffsetTop ( by . css ( '#basicScrollTarget' ) ) ; } getBasicContainerScrollTop ( ) { return this . getScrollTop ( by . css ( '#basicContainer' ) ) ; } getComplexContainerScrollTop ( ) { return this . getScrollTop ( by . css ( '#complexContainer' ) ) ; } getComplexContainerTargetVerticalPosition ( ) { return this . getVerticalPosition ( by . css ( '#complexContainer' ) ) ; } getComplexScrollTargetVerticalPosition ( ) { return this . getVerticalPosition ( by . css ( '#complexScrollTarget' ) ) ; } }