In my Gmail, the xpath for the subject and body fields constantly changes every time I compose a new email. So the xpath is not a valid solution.
var subjectElem = document.querySelectorAll('[name="subjectbox"]');
subjectElem.value = document.kmvar.Subject;
where the subject field has an input name of "subjectbox" - so good so far.
All set with the subject.
Now for the body field, which as stated, the xpath ID constantly changes.
The body does not have an input name:
but it does have an 'aria-label' which equals "Message Body"
I did find this out on the web,
but am not sure how to implement it.
Any help would be appreciated.