import { browser , by , element } from "protractor" ; export class Helper { navigateTo ( $des ) { return browser . get ( $des ) ; } getElementByClassName ( className ) { return element ( by . css ( `.${ className }` ) ) . getWebElement ( ) . getText ( ) ; } getBodyElement ( tagName , n ) { return browser . $$ ( tagName ) . get ( n ) . getText ( ) ; } getTitle ( ) { return browser . getTitle ( ) ; } navigateTo ( $des ) { return browser . get ( $des ) ; } }