import { browser , Key , $ } from 'protractor' ; export class SplitterPage { gutter = $ ( '.as-split-gutter' ) ; async getPage ( ) { await browser . get ( '#/splitter' ) ; } async setGutterFocused ( ) { return await this . gutter . click ( ) ; } async getGutterAriaValue ( ) { return await this . gutter . getAttribute ( 'aria-valuenow' ) ; } async getGutterAriaValueMin ( ) { return await this . gutter . getAttribute ( 'aria-valuemin' ) ; } async getGutterAriaValueMax ( ) { return await this . gutter . getAttribute ( 'aria-valuemax' ) ; } async sendLeftKey ( ) { return await browser . actions ( ) . sendKeys ( Key . ARROW_LEFT ) . perform ( ) ; } async sendRightKey ( ) { return await browser . actions ( ) . sendKeys ( Key . ARROW_RIGHT ) . perform ( ) ; } async sendHomeKey ( ) { return await browser . actions ( ) . sendKeys ( Key . HOME ) . perform ( ) ; } async sendEndKey ( ) { return await browser . actions ( ) . sendKeys ( Key . END ) . perform ( ) ; } }