I have this HTML element
<div dir="auto" data-tab="1" contenteditable="true" class="input" data-reactid=".0.$main.5.2.1.1.0.1"></div>
and want to access it from JavaScript code then send it mouse click event and then keyboard key-press events .
I have searching a lot and find this question Is there a way to simulate key presses or a click with javascript? but I couldn't access the element ! Can anyone help me to find a way to access it from javascript and send it mouse click event and then keyboard key-press events ?