本文整理匯總了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'));