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

12 lines
210 B
TypeScript

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