clearElement

Clear a <textarea> or text <input> element’s value.

Usage

1
client.clearElement(selector).then(callback);

Parameters

Param Type Details
selector String input element

Example

clearElement.js
1
2
3
4
5
6
client
.setValue('.input', 'test123')
.clearElement('.input')
.getValue('.input').then(function(value) {
assert(value === ''); // true
});

Uses