本文整理匯總了TypeScript中aurelia-protractor-plugin/protractor.by類的典型用法代碼示例。如果您正苦於以下問題:TypeScript by類的具體用法?TypeScript by怎麽用?TypeScript by使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了by類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: pressSubmitButton
pressSubmitButton() {
return element(by.css('button[type="submit"]')).click();
}
示例2: getFullnameElement
getFullnameElement() {
return element(by.css('.help-block'));
}
示例3: getGreeting
getGreeting() {
return element(by.tagName('h2')).getText();
}
示例4: setFirstname
setFirstname(value) {
let firstName = element(by.valueBind('firstName'));
return firstName.clear().then(() => firstName.sendKeys(value));
}
示例5: getLastnameElement
getLastnameElement() {
return element(by.valueBind('lastName'));
}
示例6: getFullname
getFullname() {
return element(by.css('.help-block')).getText();
}
示例7: setLastname
setLastname(value) {
let lastName = element(by.valueBind('lastName'));
return lastName.clear().then(() => lastName.sendKeys(value));
}
示例8: element
return element(by.id("password")).sendKeys("user").then(() => {
return element(by.css('button[type="submit"')).click()
})
示例9: navigateTo
navigateTo(href) {
element(by.css('a[href="' + href + '"]')).click();
return browser.waitForRouterComplete();
}
示例10: navigateTo
async navigateTo(href) {
const navigatingReady = browser.waitForRouterComplete();
await element(by.css('a[href="' + href + '"]')).click();
await navigatingReady;
}