本文整理匯總了TypeScript中protractor.by.id方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript by.id方法的具體用法?TypeScript by.id怎麽用?TypeScript by.id使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類protractor.by
的用法示例。
在下文中一共展示了by.id方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: combinedTrigger
combinedTrigger() { return element(by.id('combined-t')); }
示例2: retrieveDeployedPackageName
// Retrieve Editor Deployed Package Name from navlogo section
static retrieveDeployedPackageName() {
return OperationsHelper.retrieveTextFromElement(element(by.id('network-name')));
}
示例3: clickExportBND
// Click Export button
static clickExportBND() {
return OperationsHelper.click(element(by.id('editor_export')));
}
示例4: clearBusinessNetworkName
// Name the network
static clearBusinessNetworkName() {
return element(by.id('import-businessNetworkName')).clear();
}
示例5: clickDeploy
// Deploy
static clickDeploy() {
return OperationsHelper.click(element(by.id('import_confirm')));
}
示例6: it
it('should open a template dialog', async () => {
await expectToExist('.my-template-dialog', false);
await element(by.id('template')).click();
await expectToExist('.my-template-dialog');
});
示例7: beforeEach
beforeEach(() => {
browser.get('/icon');
testIcon = element(by.id('test-icon'));
});
示例8: clickTaskListCloudConfiguration
clickTaskListCloudConfiguration() {
let button = element(by.id('adf-task-list-cloud-conf'));
Util.waitUntilElementIsVisible(button);
Util.waitUntilElementIsClickable(button);
return button.click();
}
示例9: clickInfinitePaginationConfiguration
clickInfinitePaginationConfiguration() {
let button = element(by.id('adf-infinite-pagination-conf'));
Util.waitUntilElementIsVisible(button);
Util.waitUntilElementIsClickable(button);
return button.click();
}
示例10: clickSearchConfiguration
clickSearchConfiguration() {
let button = element(by.id('adf-search-conf'));
Util.waitUntilElementIsVisible(button);
Util.waitUntilElementIsClickable(button);
return button.click();
}