I’m working on automating a series of tests to perform after a software upgrade that simulates what a user would do by clicking and entering data into fields within Internet Explorer to ensure functionality. The problem I have run into is, some fields I can set the value but it require a keystroke or otherwise the field is seen as empty. So when I search, it doesn’t search for what I’ve specified but rather returns 100’s of results because it thinks the field is blank. Without using send keys, does anyone have any suggestions on how to get around this? I’ve tried Focus(), Select(), and SetActive() on the field but this also fails to register that there is data in that field.
How I’m setting the value:
$A = $IE.Document.IHTMLDocument3_getElementById('txtNumber') $A.setAttribute('value',"$Number")
Element I am working with:
<input class="SearchCriteria ng-valid FieldValidateWrapper k-textbox k-input Input xj-text-editor ng-dirty ng-touched ng-valid-parse ng-empty" id="txtNumber" type="text" className="SearchCriteria ng-valid FieldValidateWrapper k-textbox k-input Input xj-text-editor ng-not-empty ng-dirty ng-valid-parse ng-touched" ng-blur="setLastFocus($event)" set-focus="focusOnNumber" ng-model="search_criteria.SEARCH_NUMBER" text-editor="" hide-zero="">