0
I need to perform the action of this button, which originally works with Control+Enter, using a JS of mine, but the only static things of the button are the data-tooltip
and aria-label
:
<div tabindex="1" class="T-I J-J5-Ji aoO T-I-atl L3 T-I-JW T-I-Zf-aw2"
id=":go" role="button" aria-label="Enviar (Ctrl-Enter)"
data-tooltip="Enviar (Ctrl-Enter)" unselectable="on"
data-tooltip-delay="800">Enviar</div>
I prefer a solution without simulation of keys, that acts directly in the element and allows me to command the sending programmatically.
See if the question reflects your need, I changed based on the comments you made in my answer. For now I deleted my original answer for not solving your problem, and also help attract new answers.
– Bacco
Now that I realize... Do you want to trigger the Google Mail send button by JS? It sounds interesting, but maybe you have other ways to get the desired result. Put the details in the question, suddenly this is a XY problem and can be solved in other ways.
– Bacco
What action do you intend to take? What do you expect the user to do on this button and what do you want to happen after the user action?
– Manuel Gerardo Pereira