當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript browser.getTitle方法代碼示例

本文整理匯總了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');
  });
開發者ID:ca136,項目名稱:angular,代碼行數:9,代碼來源:app.e2e-spec.ts

示例2: it

 it('should have a title', () => {
   browser
       .getTitle()
       .then((subject: string) => {
           expect(subject).toEqual('Angular2 Quickstart');
       });
 });
開發者ID:cbragard,項目名稱:angular2-quickstart,代碼行數:7,代碼來源:app.component.e2e.ts

示例3: expect

 this.Given(/^I am on ng1 calculator page$/, () => {
   return expect(browser.getTitle()).to.eventually.equal('Super Calculator');
 });
開發者ID:cnishina,項目名稱:protractor-cookbook,代碼行數:3,代碼來源:calcSteps.ts

示例4: it

 it(`has title '${expectedTitle}'`, () => {
   expect(browser.getTitle()).toEqual(expectedTitle);
 });
開發者ID:JohnnyQQQQ,項目名稱:angular,代碼行數:3,代碼來源:e2e-spec.ts

示例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(() => {});
開發者ID:HelloMQL,項目名稱:protractor,代碼行數:30,代碼來源:test_fail_browser.ts

示例6: it

 it('should have a title', () => {
   expect(browser.getTitle()).toEqual("Grub Finder");
 });
開發者ID:MohakC,項目名稱:Grub-Finder,代碼行數:3,代碼來源:app.e2e-spec.ts

示例7: it

 it('should have a title', () => {
   let subject = browser.getTitle();
   let result = 'Angular2 Webpack Starter by @gdi2290 from @AngularClass';
   expect(subject).toEqual(result);
 });
開發者ID:battmanz,項目名稱:angular2-webpack-starter,代碼行數:5,代碼來源:home.e2e-spec.ts

示例8: it

 it('should load job search', async() => {
     expect(await browser.getTitle()).toEqual('Job search');
 });
開發者ID:alv-ch,項目名稱:job-room,代碼行數:3,代碼來源:job-search.spec.ts

示例9: function

 t.it('should have a title', function() {
   t.e(browser.getTitle()).toEqual('Angular Seed Advanced');
 });
開發者ID:chnoumis,項目名稱:angular2-seed-advanced,代碼行數:3,代碼來源:app.component.e2e-spec.ts


注:本文中的protractor.browser.getTitle方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。