本文整理匯總了TypeScript中protractor.element函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript element函數的具體用法?TypeScript element怎麽用?TypeScript element使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了element函數的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: beforeEach
beforeEach(() => {
host = element(by.css('app-hero-list-groups'));
});
示例2: element
.then(() => {
let inputFileElement = element(by.id('file-importer_input'));
return dragDropFile(inputFileElement, filePath);
})
示例3: getMainHeading
getMainHeading() {
return element(by.css('app-root h1')).getText();
}
示例4: waitToLoadNpmOptions
static waitToLoadNpmOptions() {
browser.wait(OperationsHelper.elementsPresent(element(by.id('npm-samples')).all(by.css('.sample-network-list-item')), npmTiles.length), Constants.mlongwait);
}
示例5: retrieveNpmTileOptions
static retrieveNpmTileOptions() {
this.waitToLoadNpmOptions();
return element(by.id('npm-samples')).all(by.css('.sample-network-list-item'));
}
示例6: getParagraphText
getParagraphText() {
return element(by.css('<%= prefix %>-root h1')).getText();
}
示例7: deployBND
// Click deploy button
static deployBND() {
return element(by.id('editor_deploy')).click();
}
示例8: importBND
// Click import button
static importBND() {
return element(by.id('editor_import')).click();
}