本文整理匯總了TypeScript中protractor.ElementHelper類的典型用法代碼示例。如果您正苦於以下問題:TypeScript ElementHelper類的具體用法?TypeScript ElementHelper怎麽用?TypeScript ElementHelper使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了ElementHelper類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1:
/// <reference path="../../built/index.d.ts" />
import {ElementArrayFinder, ElementFinder, ElementHelper, ProtractorBy} from 'protractor';
let element: ElementHelper;
let by: ProtractorBy;
let $: (search: string) => ElementFinder;
let $$: (search: string) => ElementArrayFinder;
element.all(by.css('')).clone('clone');
element.all(by.css('')).clone(1);
element.all(by.css('')).clone(false);
element.all(by.css('')).clone(() => {});
element.all(by.css('')).then();
element.all(by.css('')).then(() => {});
element.all(by.css('')).then('fn');
element.all(by.css('')).then('fn', 'err');
element.all(by.css('')).then(1);
element.all(by.css('')).then(1, -1);
element.all(by.css('')).then(false);
element.all(by.css('')).then(false, false);
element.all(by.css('')).then(1, 'err');
element.all(by.css('')).then(() => {}, () => {}, () => {});
element.all(by.css('')).filter('filter');
element.all(by.css('')).filter(1);
element.all(by.css('')).filter(false);
element.all(by.css('')).get('0');
element.all(by.css('')).get(false);
element.all(by.css('')).get(() => {});
element.all(by.css('')).first('first');
element.all(by.css('')).first(true);
element.all(by.css('')).first(0);
element.all(by.css('')).first(() =>{});
element.all(by.css('')).last('last');
示例2:
/// <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');