Hey Russ,
The HTML for the object is:
<div class="dollars-input">
<input class="form-control text-right" data-decimals="0" data-delimiter="," data-increment="10000" name="seasonalities[66da99f5-7c19-4c4e-943d-f5851a94d4b8]" value="169000.0" style="" type="text">
</div>
Additionally, there is a - and + button on the sides to increment the value by 10,000.
When I enter the value by hand, I normally do a select all, (CTRL-A), and enter -7500, which works fine. I’ve tried:
WebUI.sendKeys(findTestObject('Input'),Keys.chord(Keys.CONTROL,'a','-7500'))
and
WebUI.setText(findTestObject('Input'), "-195000")
But that doesn’t seem to work correctly. I get "Keys ‘CONTROL + a-7500’ in the Console Log, but that value doesn’t show in the field.
For both cases, my value goes behind the 0 which causes the problem.
To enter the value by hand, the 0 needs to be replaced. There is validation on the field, where if you click Tab, and the value is invalid, it will default back to 0.
I have not tried setting the field in the browser console using JavaScript.