本文整理匯總了TypeScript中protractor/globals.by.cssContainingText方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript by.cssContainingText方法的具體用法?TypeScript by.cssContainingText怎麽用?TypeScript by.cssContainingText使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類protractor/globals.by
的用法示例。
在下文中一共展示了by.cssContainingText方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: openEditPane
openEditPane(name: string) {
let row = element(by.cssContainingText('td', name));
return waitForElementPresence(row).then(() => {
return this.getIconButton(name, '.fa-pencil').click().then(() =>{
return browser.getCurrentUrl();
});
})
}
示例2: element
return element(by.css('.alert .close')).click().then(() => {
return waitForStalenessOf(element(by.cssContainingText('td', name))).then(() =>{
return true;
});
})
示例3: selectNavLink
selectNavLink(linkName: string) {
return element(by.cssContainingText('.navigation .nav-link', linkName)).click().then((args) => {
return true;
});
}
示例4:
threatIntelSelect.click().then(() => {
threatIntelSelect.all(by.cssContainingText('option', threatIntel)).last().click();
});
示例5: waitForElementVisibility
return waitForElementVisibility(saveButton).then(() => {
return element(by.cssContainingText('metron-config-sensor-grok button', 'TEST')).click();
})
示例6: element
return element(by.css('select[formcontrolname="parserClassName"]')).click().then(() => {
return element.all(by.cssContainingText('select[formcontrolname="parserClassName"] option', parserName)).get(0).click();
})
示例7: saveThreatTriageRule
saveThreatTriageRule() {
return element(by.cssContainingText('metron-config-sensor-rule-editor .btn', 'SAVE')).click();
}
示例8: saveGrokStatement
saveGrokStatement() {
let saveButton = element(by.cssContainingText('metron-config-sensor-grok button', 'SAVE'));
return waitForElementVisibility(saveButton).then(() => {
return element(by.cssContainingText('metron-config-sensor-grok button', 'SAVE')).click();
})
}