addValue
Add a value to an object found by given selector. You can also use unicode characters like Left arrow or Back space. WebdriverIO will take care of translating them into unicode characters. You’ll find all supported characters here. To do that, the value has to correspond to a key from the table.
Usage
browser.addValue(selector, values)
Parameters
Param | Type | Details |
---|---|---|
selector optional | param | Input element |
values optional | param | value to be added |
Example
it('should demonstrate the addValue command', function () {
var input = $('.input')
input.addValue('test')
input.addValue(123)
var value = input.getValue()
assert(value === 'test123') // true
})