Thanks for the good test case! The solution was to replace TYPE with XTYPE -> then it works:
Demo:
Note: bringBrowserToForeground
is required. The focus can only be set on the field when the browser is the top foreground window.
My test macro:
{
"Name": "tags",
"CreationDate": "2020-5-15",
"Commands": [
{
"Command": "bringBrowserToForeground",
"Target": "xpath=//*[@id=\"product_uploader\"]/div[6]/div/input",
"Value": ""
},
{
"Command": "comment",
"Target": "Set focus, then XTYPE",
"Value": ""
},
{
"Command": "click",
"Target": "xpath=//*[@id=\"product_uploader\"]/div[6]/div/input",
"Value": ""
},
{
"Command": "XType",
"Target": "${KEY_1}${KEY_2}${KEY_3}",
"Value": ""
},
{
"Command": "XType",
"Target": "${KEY_ENTER}",
"Value": ""
},
{
"Command": "XType",
"Target": "africamap",
"Value": ""
},
{
"Command": "XType",
"Target": "${KEY_ENTER}",
"Value": ""
}
]
}