File picker still shows after using the workaround of xType in chrome

I am using a script that uploads a file in Chrome. After the file is uploaded I still have the file uploader stay up and it doesn’t close using the $(KEY_ESC) command. I am wondering what other work arounds are there for this?

Need the url of the page to see the html source page

You need the url? of what file upload i am using?

A screen video could be helpful.

What OS is this?

And is it Chrome or Firefox?


This screen stays open.

I am using Chrome and on a Windows 10 Home laptop.

I followed the video and put in the code xType with $(KEY_ESC) but the screen still shows.

Before using xType with $(KEY_ESC) you must use Xclick with image to set the focus on screen

Like this? Its not closing for me.

{
“Command”: “type”,
“Target”: “id=media”,
“Value”: “C:\output\304.jpg”,
“Description”: “”
},
{
“Command”: “XClick”,
“Target”: “id=media”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_ESC)”,
“Value”: “C:\output\304.jpg”,
“Description”: “”
},
{
“Command”: “type”,
“Target”: “id=media”,
“Value”: “C:\output\305.jpg”,
“Description”: “”
},

Yout macro code is wrong, you must use desktop automation command only.
Type command is a selinium code not for desktop automation.

Automate file manager of browser is desktop automation NOT web automation and need Xclick, Xtype, Xmove command with xmodules installed (free user can use max 25 commands per macro execution)

For desktop automation you must use these commands

https://ui.vision/rpa/docs/xtype