Using Firefox Katalon Recorder add-on (but have same problem with Chrome).
Trying to submit html form that uses AngularJS validation and includes an input field of type=‘date’. Found that the only command that will insert the date value is ‘SetText’ (not ‘type’ or ‘sendKeys’), but this does not trigger the event that changes the input class from ‘ng-invalid’ to ‘ng-valid’. On the other hand, with an input field of type='text, the command ‘sendKeys’ does insert text and trigger event that changes class from ‘ng-invalid’ to ‘ng-valid’.
Katalon script and page html extract copied below:
At page load
SaveAfter manual input
changes form and input classes to ng-touched ng-dirty ng-valid
removes ‘disabled’ attribute from ‘Save’ button
clicking ‘Save’ successfully submits the form
After Katalon Recorder input using ‘setText’
no changes to input/button classes but does put values in both input fields
changes form class ‘ng-pristine’ to ‘ng-dirty’
clicking ‘Save’ does nothing
After Katalon Recorder input using ‘sendKeys’
changes ng-pristine to ng-dirty on both input fields but does not put value into date input field
changes form class ‘ng-pristine’ to ‘ng-dirty’
changes ‘name’ input field class ‘ng-invalid’ to ‘ng-valid’
clicking ‘Save’ does nothing
After Katalon Recorder input using ‘sendKeys’ followed by ‘setText’
changes ng-pristine to ng-dirty on both input fields but and puts values into both input fields
changes form class ‘ng-pristine’ to ‘ng-dirty’
changes ‘name’ input field class ‘ng-invalid’ to ‘ng-valid’
Clicking ‘Save’ does nothing
(Html same as above)