import { browser , by , element , ElementFinder } from 'protractor' ; export class RadioButtonsPage { async getPage ( ) { await browser . get ( '#/radiobuttons' ) ; } radiobutton1 = element ( by . css ( 'ux-radio-button#radiobutton1' ) ) ; radiobutton2 = element ( by . css ( 'ux-radio-button#radiobutton2' ) ) ; radiobutton3 = element ( by . css ( 'ux-radio-button#radiobutton3' ) ) ; radiobutton4 = element ( by . css ( 'ux-radio-button#radiobutton4' ) ) ; text1 = element ( by . id ( 'text1' ) ) ; disableFirstButton = element ( by . id ( 'button1' ) ) ; changeToSimplified = element ( by . id ( 'button2' ) ) ; confirmIsChecked ( radiobutton ) { return radiobutton . $ ( '.ux-radio-button-checked' ) . isPresent ( ) ; } confirmIsDisabled ( radiobutton ) { return radiobutton . $ ( '.ux-radio-button-disabled' ) . isPresent ( ) ; } confirmIsSimplified ( radiobutton ) { return radiobutton . $ ( '.ux-radio-button-simplified' ) . isPresent ( ) ; } toggleByKey ( radiobutton , key ) { radiobutton . $ ( '.ux-radio-button' ) . sendKeys ( key ) ; } }