Using Robot with UI4J / JafaFX

I’m using ui4j to create a web scraper for WordPress. I have code like this…

    doc.query("#usernameOrEmail").get().focus().setValue("text");

Which sets the value of the text, but for JavaScript events, does not set the value. However, when I use Robot#keyPress() to insert each character, it works fine.

Must I use Robot to insert characters? Is there a JavaFX way to update forms that are sensitive to keyPresses?