angular-cn/aio/e2e/app.po.ts

19 lines
424 B
TypeScript
Raw Normal View History

import { browser, element, by } from 'protractor';
export class SitePage {
links = element.all(by.css('md-toolbar a'));
docViewer = element(by.css('aio-doc-viewer'));
codeExample = element.all(by.css('aio-doc-viewer pre > code'));
featureLink = element(by.css('md-toolbar a[href="features"]'));
navigateTo() {
return browser.get('/');
}
getDocViewerText() {
return this.docViewer.getText();
}
}