Commonly when working on a web application that makes use of some javascript framework, writing text to an input is not all that is needed, as the element never received focus/keydown/keyup/blur events that it would normally receive from a user. Workarounds for this are sending global keys to the input, pressing tab or other similar action to trigger the event.
I am proposing an enhancement to the write stage to add additional optional parameters, to send a focus event to the element before writing the value, writing the value, then optionally sending a blur event.
This would allow (most of) these frameworks to pick up that something had occurred and take notice of the new input.