本文整理匯總了TypeScript中protractor.browser.getTitle方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript browser.getTitle方法的具體用法?TypeScript browser.getTitle怎麽用?TypeScript browser.getTitle使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類protractor.browser
的用法示例。
在下文中一共展示了browser.getTitle方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: it
it('should set appropriate window titles', () => {
expect(browser.getTitle()).toBe('Angular');
page.getTopMenuLink('features').click();
expect(browser.getTitle()).toBe('Angular - FEATURES & BENEFITS');
page.homeLink.click();
expect(browser.getTitle()).toBe('Angular');
});
示例2: it
it('should have a title', () => {
browser
.getTitle()
.then((subject: string) => {
expect(subject).toEqual('Angular2 Quickstart');
});
});
示例3: expect
this.Given(/^I am on ng1 calculator page$/, () => {
return expect(browser.getTitle()).to.eventually.equal('Super Calculator');
});
示例4: it
it(`has title '${expectedTitle}'`, () => {
expect(browser.getTitle()).toEqual(expectedTitle);
});
示例5:
browser.enterRepl(0, 0);
browser.enterRepl('1');
browser.enterRepl(true);
browser.enterRepl(() => {});
browser.pause(0, 0);
browser.pause('1');
browser.pause(true);
browser.pause(() => {});
browser.actions(0);
browser.actions('1');
browser.actions(true);
browser.actions(() => {});
browser.wait('condition', '1');
browser.wait('condition', true);
browser.wait('condition', () => {});
browser.wait('condition', 100, 0);
browser.wait('condition', 100, true);
browser.wait('condition', 100, () => {});
browser.getCurrentUrl(0);
browser.getCurrentUrl('1');
browser.getCurrentUrl(true);
browser.getCurrentUrl(() => {});
browser.getTitle(0);
browser.getTitle('1');
browser.getTitle(true);
browser.getTitle(() => {});
browser.takeScreenshot(0);
browser.takeScreenshot('1');
browser.takeScreenshot(true);
browser.takeScreenshot(() => {});
示例6: it
it('should have a title', () => {
expect(browser.getTitle()).toEqual("Grub Finder");
});
示例7: it
it('should have a title', () => {
let subject = browser.getTitle();
let result = 'Angular2 Webpack Starter by @gdi2290 from @AngularClass';
expect(subject).toEqual(result);
});
示例8: it
it('should load job search', async() => {
expect(await browser.getTitle()).toEqual('Job search');
});
示例9: function
t.it('should have a title', function() {
t.e(browser.getTitle()).toEqual('Angular Seed Advanced');
});