import { browser , by , element , ElementFinder } from 'protractor' ; export class InputDropdownPage { async getPage ( ) { await browser . get ( '#/input-dropdown' ) ; } dropdown = element ( by . id ( 'dropdown' ) ) ; checkboxDisabled = element ( by . id ( 'disabledBtn' ) ) ; async isDropdownExpanded ( ) { return this . dropdown . $ ( 'dropdown' ) . isPresent ( ) ; } getButton ( ) { return this . dropdown . $ ( 'button.form-control' ) ; } async getButtonText ( ) { return this . getButton ( ) . getText ( ) ; } }