New Email Body - Gmail



So i try to record an automation using gmail and the email body is recognized as div not as TEXTAREA or INPUT.
Anyone can help?


I am having the same issue, but I can’t find a solution either…



Here is a solution you can use injecting javascript.

For the browser selector, you can use

<html url='*'>

Inject this as scriptcode :

"document.getElementsByClassName('Am Al editable LW-avf')(0).innerText='Hello\n\nHere is the mail body\n\nCheers\n\nFlorent'"

As you can see you need to add new lines using \n

Example Here

Web_PrepareGmail.xaml (6.5 KB)

Edit: You need to add ‘ContinueOnError’ property True on Inject script activity, it cause an exception but the body should correctly amended


Thank you so much! It works perfectly.