The target input element :
input ng-required="$ctrl.isRequired" name="" moment-picker="$ctrl.selectedFormattedDate" ng-model="$ctrl.selectedMoment" value="Fri Mar 27 2020 00:00:00 GMT+0530" ng-disabled="$ctrl.disabled" class="mw-date-picker mw-date-picker-dropdown ng-pristine ng-valid moment-picker-input md-input ng-not-empty ng-valid-required ng-valid-min-date ng-valid-max-date ng-touched" format="L" locale="en" min-view="year" max-view="month" start-view="month" timezone="$ctrl.timezone" today="$ctrl.isTodayHighlighted" change="$ctrl.handleDateChange(newValue, oldValue)" min-date="$ctrl.minDate" max-date="$ctrl.maxDate" tabindex="0" id="input_198" required="required" aria-invalid="false" style="">
I tried changing the attribute "value" using Python code:
driver.execute_script("arguments[0].value = '03/10/2019';", element)
This commands updates the value in the front end but the changes are not saved after clicking OK(there is no issue with OK button click code). I also tried changing "moment-picker" but it did not help either. Can someone please help me with some way out using Python?