angular-docs-cn/angular.io/e2e/app.po.ts

12 lines
213 B
TypeScript

import { browser, element, by } from 'protractor';
export class SitePage {
navigateTo() {
return browser.get('/');
}
getParagraphText() {
return element(by.css('app-home-page p')).getText();
}
}