本文整理汇总了TypeScript中protractor/globals.element函数的典型用法代码示例。如果您正苦于以下问题:TypeScript element函数的具体用法?TypeScript element怎么用?TypeScript element使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了element函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: element
return element.all(by.css('.advanced-link')).click().then(() => {
element(by.css('input[formcontrolname="newConfigKey"]')).sendKeys(key);
element(by.css('input[ng-reflect-name="newConfigValue"]')).sendKeys(value);
});
示例2: element
browser.wait(function() {return element(by.css('input.form-control')).isPresent();});
示例3: getErrorMessage
getErrorMessage() {
let errorMessage = element(by.css('div[style="color:#a94442"]')).getText();
return errorMessage.then(message => {
return message.replace(/\n/,'').replace(/LOG\ IN$/,'');
})
}
示例4: getFullname
getFullname() {
return element(by.css('.help-block')).getText();
}
示例5: getGreeting
getGreeting() {
return element(by.tagName('h2')).getText();
}
示例6: getNavigationTitle
getNavigationTitle() {
return element(by.css('.navigation .nav-link-title')).getText();
}
示例7: selectNavLink
selectNavLink(linkName: string) {
return element(by.cssContainingText('.navigation .nav-link', linkName)).click().then((args) => {
return true;
});
}
示例8: setParserType
setParserType(parserName: string) {
return element(by.css('select[formcontrolname="parserClassName"]')).click().then(() => {
return element.all(by.cssContainingText('select[formcontrolname="parserClassName"] option', parserName)).get(0).click();
})
}
示例9: setSampleMessage
setSampleMessage(paneName: string, message: string) {
let sampleMsgTextArea = element(by.css('metron-config-' + paneName + ' .form-control.sample-input'));
return waitForElementVisibility(sampleMsgTextArea).then(() => {
return sampleMsgTextArea.sendKeys(message);
})
}
示例10: saveParser
saveParser() {
return element(by.css('.btn.save-button')).click();
}