本文整理汇总了TypeScript中aurelia-protractor-plugin/protractor.browser.sleep方法的典型用法代码示例。如果您正苦于以下问题:TypeScript browser.sleep方法的具体用法?TypeScript browser.sleep怎么用?TypeScript browser.sleep使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类aurelia-protractor-plugin/protractor.browser
的用法示例。
在下文中一共展示了browser.sleep方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: it
it('finds patient with TitelSuffix "unittest"', async () => {
await login()
await browser.sleep(2000)
const inp = element(by.id('$find_search'))
console.log("found %s",inp)
await inp.sendKeys('unittest')
await browser.sleep(1000)
await element(by.css('button[type="submit"]')).click()
const t=await inp.getText
expect(t).toBe("Hallo")
})
示例2: it
it('should automatically write down the fullname', () => {
po_welcome.setFirstname('Rob');
po_welcome.setLastname('Eisenberg');
// For now there is a timing issue with the binding.
// Until resolved we will use a short sleep to overcome the issue.
browser.sleep(200);
expect(po_welcome.getFullname()).toBe('ROB EISENBERG');
});
示例3: it
it('should automatically write down the fullname', () => {
po_welcome.setFirstname('John');
po_welcome.setLastname('Doe');
// For now there is a timing issue with the binding.
// Until resolved we will use a short sleep to overcome the issue.
browser.sleep(200);
expect<any>(po_welcome.getFullname()).toBe('JOHN DOE');
});
示例4: beforeEach
beforeEach(async ()=>{
await browser.loadAndWaitForAureliaPage(`http://localhost:${config.port}`);
browser.waitForRouterComplete()
browser.sleep(5000)
})