import { browser, element, by } from 'protractor'; export class RouterSamplePage { navigateTo() { return browser.get('/'); } getParagraphText() { return element(by.css('app-root h1')).getText(); } }