本文整理汇总了TypeScript中protractor.by.partialButtonText方法的典型用法代码示例。如果您正苦于以下问题:TypeScript by.partialButtonText方法的具体用法?TypeScript by.partialButtonText怎么用?TypeScript by.partialButtonText使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类protractor.by
的用法示例。
在下文中一共展示了by.partialButtonText方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: reportGame
reportGame(result: Array<Array<string>>) {
element(by.css('.app-action button')).click();
browser.wait(ExpectedConditions.presenceOf(element(by.partialButtonText('Report'))), 5 * oneSecond);
for (let i = 0; i < result.length; i++) {
for (let j = 0; j < result[i].length; j++) {
element(by.css(`input[name="name${i}.${j}"]`)).sendKeys(result[i][j]);
browser.sleep(shortSleep);
}
}
element(by.partialButtonText('Report')).click();
browser.wait(ExpectedConditions.not(ExpectedConditions.presenceOf(
element(by.tagName('app-game')))), 5 * oneSecond);
}
示例2: beforeEach
beforeEach(async () => {
await browser.get('');
await disableCSSAnimations();
await element(by.partialButtonText('backup')).click();
await waitForIonicPage('import-wallet');
});
示例3: selectAll
/**
* Clicks the "select all" link that is only present when selected rows exist.
*/
selectAll(): Promise<void> {
return this.eleBulkMessage.element(by.partialButtonText('Select all')).click();
}
示例4: clearSelections
/**
* Clicks the "Clear all" link that is only present when selected rows exist.
*/
clearSelections(): Promise<void> {
return this.eleBulkMessage.element(by.partialButtonText('Clear')).click();
}
示例5:
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(() => {});
by.partialButtonText();
by.partialButtonText('', '');
by.repeater(0);
by.repeater(true);
by.repeater(() => {});
by.repeater();
by.repeater('', '');
by.exactRepeater(0);
by.exactRepeater(true);
by.exactRepeater(() => {});
by.exactRepeater();
by.exactRepeater('', '');
by.cssContainingText(0);
示例6:
browser.pause();
browser.pause(100);
browser.actions();
browser.wait('condition');
browser.wait('condition', 100);
browser.wait('condition', 100, 'message');
browser.getCurrentUrl();
browser.getTitle();
browser.takeScreenshot();
by.addLocator('name', () => {});
by.addLocator('name', 'script');
by.binding('bindingDescriptor');
by.exactBinding('bindingDescriptor');
by.model('model');
by.buttonText('searchText');
by.partialButtonText('searchText');
by.repeater('repeatDescriptor');
by.exactRepeater('repeatDescriptor');
by.cssContainingText('cssSelector', 'searchText');
by.options('optionsDescriptor');
by.deepCss('selector');
by.className('className');
by.css('css');
by.id('id');
by.linkText('linkText');
by.js('js');
by.name('name');
by.partialLinkText('partialText');
by.tagName('tagName');
by.xpath('xpath');
By.addLocator('name', () => {});
示例7: submit
submit() {
element(by.partialButtonText('Create')).click();
}