New Email Body - Gmail

recorder

#1

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?


#2

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


#3

Hi,

Here is a solution you can use injecting javascript.

For the browser selector, you can use

<html url='https://mail.google.com/mail*'>

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
Cheers


#4

Thank you so much! It works perfectly.