📜  waitfordisplayed - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:12.296000             🧑  作者: Mango

代码示例1
it('should detect when element is visible', async () => {
    const elem = await $('#elem')
    await elem.waitForDisplayed({ timeout: 3000 });
});
it('should detect when element is no longer visible', async () => {
    const elem = await $('#elem')
    await elem.waitForDisplayed({ reverse: true });
});