本文整理匯總了TypeScript中protractor.browser.sleep方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript browser.sleep方法的具體用法?TypeScript browser.sleep怎麽用?TypeScript browser.sleep使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類protractor.browser
的用法示例。
在下文中一共展示了browser.sleep方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: setMakeDefault
/**
* Set a default version to a row
* Validate the confirm modal
* @param {number} index
*/
setMakeDefault(index: number) {
this.getRowButtons(index).get(0).click();
browser.sleep(400);
element(by.css('#modal-confirm')).element(by.buttonText('Validate')).click();
browser.sleep(200);
}
示例2: it
it('should display tasks title', () => {
page.navigateTo();
browser.sleep(TICK_DELAY);
expect(page.getHeaderText()).toEqual('Tasks');
});
示例3: sleepFor
export async function sleepFor(time = 1000) {
return await browser.sleep(time);
}
示例4: it
it('should remove itself after a little while', () => {
browser.sleep(1000);
expect(rxNotify.byStack('custom').hasNotification('My message', 'success')).to.eventually.false;
});
示例5: it
it('should display logo', () => {
page.navigateTo('/');
browser.sleep(2000);
expect(page.getLogo().getText()).toBe('Strongbox');
});
示例6: addToMetaAlert
addToMetaAlert() {
element.all(by.css('app-meta-alerts')).get(0).element(by.buttonText('ADD')).click();
browser.sleep(2000);
}
示例7: waitForElementVisibility
return waitForElementVisibility(errElement).then(() => {
browser.sleep(1000);
return errElement.getText().then((message) => {
return message.replace(/\n/, '').replace(/LOG\ IN$/, '');
});
});
示例8:
.then(() => browser.sleep(2000));
示例9: setUri
/**
* Set URI
* @param {string} uri
*/
setUri(uri: string) {
element(by.css('#uriInput')).sendKeys(uri);
browser.sleep(400);
}
示例10: expandirPlano
async expandirPlano(){
await waitRenderElement('.lesson-list li');
await $$('.lesson-list > li').first().click();
await browser.sleep(500);
}