clearElement
Clear a <textarea>
or text <input>
element’s value. Make sure you can interact with the
element before using this command. You can’t clear an input element that is disabled or in
readonly mode.
Usage
1 | browser.clearElement(selector); |
Parameters
Param | Type | Details |
---|---|---|
selector | String | input element |
Example
1 | it('should demonstrate the clearElement command', function () { |