<input class="form-control ng-pristine ng-empty ng-invalid ng-invalid-required ng-touched" type="number" access-control="create_rate" ng-disabled="vm.state.disabled" required="required" name="amount" ng-model="vm.rate.user_amount"/>
I have used:
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript("arguments[0].removeAttribute('disabled')", merchantRate.addNewRatesCashback);
merchantRate.addNewRatesCashback.sendKeys(rate);
But I got an error saying removeAttribute
can't be identified.
Can anyone please help me to send text into the disabled field using java/javascript.