当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript protractor.ProtractorBy类代码示例

本文整理汇总了TypeScript中protractor.ProtractorBy的典型用法代码示例。如果您正苦于以下问题:TypeScript ProtractorBy类的具体用法?TypeScript ProtractorBy怎么用?TypeScript ProtractorBy使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了ProtractorBy类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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');
开发者ID:daominhdam,项目名称:protractor,代码行数:31,代码来源:test_fail_elements.ts

示例2:

/// <reference path="../../built/index.d.ts" />
import {ProtractorBy} from 'protractor';
let by: ProtractorBy;
let By: ProtractorBy;
by.addLocator(0, () => {});
by.addLocator(() => {}, () => {});
by.addLocator('', () => {}, () => {});
by.addLocator('', '', '');
by.binding(0);
by.binding(true);
by.binding(() => {});
by.binding();
by.binding('', '');
by.exactBinding(0);
by.exactBinding(true);
by.exactBinding(() => {});
by.exactBinding();
by.exactBinding('', '');
by.model(0);
by.model(true);
by.model(() => {});
by.model();
by.model('', '');
by.buttonText(0);
by.buttonText(true);
by.buttonText(() => {});
by.buttonText();
by.buttonText('', '');
by.partialButtonText(0);
by.partialButtonText(true);
by.partialButtonText(() => {});
开发者ID:daominhdam,项目名称:protractor,代码行数:31,代码来源:test_fail_by.ts

示例3:

/// <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


注:本文中的protractor.ProtractorBy类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。