Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add value get value

const assert = require('assert')

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

it('should demonstrate the addValue command', async () => {
    browser.url('https://v5.webdriver.io')
        let input = await $('#search_input_react')
        await input.addValue('test')
        await browser.pause(4000);

        await input.addValue('123')
        await browser.pause(4000);

        value = await input.getValue()
        assert(value === 'test123') // true
    })
 })
 
PREVIOUS NEXT
Tagged: #add
ADD COMMENT
Topic
Name
1+4 =