https://github.com/angular/angular
Raw File
Tip revision: 4a7e7242382e069b487ed89cdc42e5368af0c007 authored by dario-piotrowicz on 23 May 2022, 20:54:54 UTC
refactor(compiler-cli): fix "for to" typo in code comment (#46113)
Tip revision: 4a7e724
app.po.ts
import { browser, by, element } from 'protractor';

export class AppPage {
  navigateTo() {
    return browser.get(browser.baseUrl) as Promise<any>;
  }

  getTitleText() {
    return element(by.css('app-root .content span')).getText() as Promise<string>;
  }
}
back to top