本文整理汇总了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();
})
}