2017-01-27 03:20:51 -05:00
|
|
|
import { browser, element, by } from 'protractor';
|
|
|
|
|
|
|
|
export class SitePage {
|
2017-02-02 15:10:47 -05:00
|
|
|
|
2017-02-07 15:57:18 -05:00
|
|
|
links = element.all(by.css('md-toolbar a'));
|
|
|
|
docViewer = element(by.css('aio-doc-viewer'));
|
2017-02-09 14:58:36 -05:00
|
|
|
codeExample = element.all(by.css('aio-doc-viewer pre > code'));
|
2017-03-01 17:43:14 -05:00
|
|
|
featureLink = element(by.css('md-toolbar a[href="features"]'));
|
2017-02-02 15:10:47 -05:00
|
|
|
|
2017-01-27 03:20:51 -05:00
|
|
|
navigateTo() {
|
|
|
|
return browser.get('/');
|
|
|
|
}
|
|
|
|
|
2017-02-02 15:10:47 -05:00
|
|
|
getDocViewerText() {
|
2017-02-07 15:57:18 -05:00
|
|
|
return this.docViewer.getText();
|
2017-01-27 03:20:51 -05:00
|
|
|
}
|
2017-02-07 15:57:18 -05:00
|
|
|
|
2017-01-27 03:20:51 -05:00
|
|
|
}
|