angular-cn/aio/content/examples/cli-quickstart/e2e/app.po.ts

12 lines
210 B
TypeScript
Raw Normal View History

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