I have protractor 2.2.0.
The clear()
function does not work on input of type number. I have tried most of the solutions given here. Please help me. Below is my code:
element(by.model('lineup.voltage_limit')).click().clear().sendKeys(value);
I have tried to even resolve the promise from clear() like below
element(by.model('lineup.voltage_limit')).click().clear().then(function(){
element(by.model('lineup.voltage_limit')).sendKeys(value);
});
clear()
just does not seem to work! It just keeps on appending to the text in the input box.