https://github.com/angular/angular
Raw File
Tip revision: ec3987ede6d3adc3858b46b524ff4cb1b89aabf5 authored by Andrew Scott on 11 January 2021, 17:25:48 UTC
release: cut the v11.0.8 release (#40391)
Tip revision: ec3987e
app.po.ts
import {browser, by, element} from 'protractor';

export class AppPage {
  navigateTo() { return browser.get('/'); }

  getHeading() { return element(by.css('app-root h1')).getText(); }

  getParagraph(name: string) { return element(by.css('app-root p#' + name)).getText(); }
}
back to top