angular-cn/integration/cli-hello-world-ivy-i18n/e2e/src/app.po.ts

16 lines
286 B
TypeScript
Raw Normal View History

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