import { $ , $$ , browser } from 'protractor' ; export class OrganizationChartPage { nodes = $$ ( '.ux-organization-chart-node' ) ; toggleNodesOnClick = $ ( '#toggleNodesBtn' ) ; async getPage ( ) { await browser . get ( '#/organization-chart' ) ; } async getNodeText ( index ) { return this . nodes . get ( index ) . getText ( ) ; } }