Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Wait Until

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())
    });
});    

 
PREVIOUS NEXT
Tagged: #Wait #Until
ADD COMMENT
Topic
Name
4+1 =