Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

is displayed

const assert = require('assert')

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

    it('should detect if element is displayed', async () => {

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

        const helpButton = await $('[href="/help.html"]')
        isDisplayed  = await helpButton.isDisplayed();
        
        console.log('IS DISPLAYED?' + isDisplayed );  // false or true

       }) 
})


 
PREVIOUS NEXT
Tagged: #displayed
ADD COMMENT
Topic
Name
6+2 =