Подожди пока
const assert = require('assert')
describe('v5.webdriver.io', () => {
it('should wait until text has changed', async () => {
await browser.url('https://v5.webdriver.io');
await browser.waitUntil(() => {
return $('[href="/help.html"]').isDisplayed();
}, 5000, 'help is not Displayed');
console.log('Is Displayed' +await $('[href="/help.html"]').isDisplayed())
});
});
Vivacious Vicuña