Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

click

const assert = require('assert')

describe('v5.webdriver.io', () => {

    it('should demonstrate the click command', async () => {

        browser.url('https://v5.webdriver.io')

        const helpButton = await $('[href="/help.html"]')
        await helpButton.click()

        await browser.pause(2000);

        const guidButton = await $('[href="/docs/gettingstarted.html"]')
        await guidButton.click()

        await browser.pause(2000);
    }) 

})
 
PREVIOUS NEXT
Tagged: #click
ADD COMMENT
Topic
Name
3+7 =