本文整理汇总了TypeScript中protractor.browser类的典型用法代码示例。如果您正苦于以下问题:TypeScript browser类的具体用法?TypeScript browser怎么用?TypeScript browser使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了browser类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: navigateTo
navigateTo() {
return browser.get('/#/job-search');
}
示例2: beforeEach
beforeEach(() => {
browser.get('/tabs');
tabGroup = element(by.css('mat-tab-group'));
tabLabels = element.all(by.css('.mat-tab-label'));
tabBodies = element.all(by.css('mat-tab-body'));
});
示例3: navigateTo
navigateTo() {
return browser.get('/');
}
示例4:
.then(() => browser.waitForAngular())
示例5: it
it('Page should load', () => {
element(by.cssContainingText('a', 'Home')).click();
expect(browser.getCurrentUrl()).toContain('/home');
});
示例6: it
it(`has title '${expectedTitle}'`, () => {
expect(browser.getTitle()).toEqual(expectedTitle);
});
示例7: constructor
constructor(id: string) {
this.id = `${currentJasmineSpecName} ${id}`;
browser.takeScreenshot().then(png => this.storeScreenshot(png));
}
示例8: it
it('should detect testing mode', async () => {
await browser.get('/providers?ionic:_testing=true');
expect(await element(by.css('#is-testing')).getText()).toEqual('true');
});
示例9: navigateTo
navigateTo() {
return browser.get(browser.baseUrl) as Promise<any>;
}
示例10: beforeEach
beforeEach(() => browser.get('/progress-bar'));