Attempting to automate filling out a website using JavaScript.
The script below:
document.getElementsByClassName('form-control')[1].value = "MYNAME";
The input text changes, but upon clicking the submit button it displays as empty.
Any assistance would be greatly appreciated.
This is the HTML:
<div ng-app="VitaminMiddleSchoolApp" ng-controller="componentEbaEtudExternalEditViewController">
<input spellcheck="false" autocapitalize="none" class="form-control input-sm ng-pristine ng-valid ng-empty ng-valid-maxlength ng-touched" type="text" ng-model="render.etudName" maxlength="60" ng-change="saveRenderer()" style="">