import { browser , by , element } from 'protractor' ; export class ExpandingTextAreaPage { textarea = element ( by . tagName ( 'textarea' ) ) ; async getPage ( ) { await browser . get ( '#/expanding-text-area' ) ; } async setText ( text ) { return await this . textarea . sendKeys ( text ) ; } async getText ( ) { return await this . textarea . getAttribute ( 'value' ) ; } async getHeight ( ) { return ( await this . textarea . getSize ( ) ) . height ; } async clear ( ) { return this . textarea . clear ( ) ; } }