Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Get title assert

const assert = require('assert')

describe('v5.webdriver.io', () => {
    it('should have the right title', async () => {
        await browser.url('https://v5.webdriver.io')
        
        const title = await browser.getTitle()
        assert.strictEqual(title, 'WebdriverIO · Next-gen WebDriver test framework for Node.js')
        //или//
        assert(title === 'WebdriverIO · Next-gen WebDriver test framework for Node.js')
    })
  })
 
PREVIOUS NEXT
Tagged: #Get #title #assert
ADD COMMENT
Topic
Name
6+5 =