What I am trying to do
I am currently writing a little chat bot for Web-Whatsapp. I decided to use a chrome extension because of the easy js-injection. There is a voice-message button which switches to a button for sending text as you start typing something. React deletes the voice-message element and renders the send button.
The Problem
This whole process is event driven. I am setting the Text through DOM which does not trigger the react event. I tried to simulate a keypress but it seems like chrome´s v8 disabled all ways to simulate keypresses for security reasons. I also tried to manipulate the HTML a bit but react stopped working after i made changes to the Elements. I also tried the jQuery function for that but that didn't work either.
References to things that didn't help:
Keydown Simulation in Chrome fires normally but not the correct key
The Question
Is there any way to force React firing the event? Or any kind of workaround for this?
TestUtils.Simulate.change
right?