Use bringBrowserToForeground
plus normal CLICK
instead of XCLICK.
CLICK sets the focus to the text box as well if the browser is in the foreground, thus the need for bringBrowserToForeground
! So this case is different from macOS: XClick on image shifted since you do not need a precise mouse click somewhere, the goal of XClick was only to set the focus in the right text box).
This script works without XClick, it only has XType CTRL+V:
{
"Name": "string",
"CreationDate": "2020-5-3",
"Commands": [
{
"Command": "open",
"Target": "https://ocr.space/contact",
"Value": ""
},
{
"Command": "type",
"Target": "id=Subject",
"Value": "TEST"
},
{
"Command": "store",
"Target": "Test String...VERY LOOOOONG",
"Value": "!clipboard"
},
{
"Command": "bringBrowserToForeground",
"Target": "",
"Value": ""
},
{
"Command": "click",
"Target": "id=Message",
"Value": ""
},
{
"Command": "XType",
"Target": "${KEY_CTRL+KEY_V}",
"Value": ""
}
]
}