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


TypeScript protractor.Browser類代碼示例

本文整理匯總了TypeScript中protractor.Browser的典型用法代碼示例。如果您正苦於以下問題:TypeScript Browser類的具體用法?TypeScript Browser怎麽用?TypeScript Browser使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Browser類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1:

/// <reference path="../../built/index.d.ts" />
import {Browser, ElementArrayFinder, ElementFinder, ElementHelper, ProtractorExpectedConditions, ProtractorBy} from 'protractor';
let browser: Browser;
let by: ProtractorBy;
let By: ProtractorBy;
let element: ElementHelper;
let $: (search: string) => ElementFinder;
let $$: (search: string) => ElementArrayFinder;
let ExpectedConditions: ProtractorExpectedConditions;
element.all(by.css('')).clone();
element.all(by.css('')).then(() => {}, () => {});  // this is not appearing on the website
element.all(by.css('')).filter(() => {});
element.all(by.css('')).get(0);
element.all(by.css('')).first();
element.all(by.css('')).last();
element.all(by.css('')).count();
element.all(by.css('')).locator();
element.all(by.css('')).each((element: any, index: number) => {});
element.all(by.css('')).map(() => {});
element.all(by.css('')).reduce(() => {}, '');
element.all(by.css('')).evaluate('expression');
element.all(by.css('')).allowAnimations(false);
element.all(by.css('')).$$('');
element.all(by.css('')).getDriver();
element.all(by.css('')).getId();
element.all(by.css('')).getRawId();
element.all(by.css('')).serialize();
element.all(by.css('')).findElement(by.css(''));
element.all(by.css('')).click();
element.all(by.css('')).getTagName();
element.all(by.css('')).getCssValue('cssStyleProperty');
開發者ID:daominhdam,項目名稱:protractor,代碼行數:31,代碼來源:test_pass.ts

示例2:

/// <reference path="../../built/index.d.ts" />
import {Browser} from 'protractor';
let browser: Browser;
browser.getProcessedConfig(0);
browser.getProcessedConfig('1');
browser.getProcessedConfig(true);
browser.getProcessedConfig(()=> {});
browser.forkNewDriverInstance(0);
browser.forkNewDriverInstance('1');
browser.forkNewDriverInstance(() => {});
browser.forkNewDriverInstance(0, 0);
browser.forkNewDriverInstance('1', '1');
browser.forkNewDriverInstance(() => {}, () => {});
browser.forkNewDriverInstance(true, true, true);
browser.restart(0);
browser.restart('1');
browser.restart(true);
browser.restart(() => {});
browser.useAllAngular2AppRoots(0);
browser.useAllAngular2AppRoots('1');
browser.useAllAngular2AppRoots(true);
browser.useAllAngular2AppRoots(() => {});
browser.waitForAngular(0);
browser.waitForAngular(true);
browser.waitForAngular(() => {});
browser.addMockModule(0, () => {});
browser.addMockModule(true, () => {});
browser.addMockModule(() => {}, () => {});
browser.clearMockModules(0);
browser.clearMockModules('1');
browser.clearMockModules(true);
開發者ID:daominhdam,項目名稱:protractor,代碼行數:31,代碼來源:test_fail_browser.ts


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