Close a window popup

Hello,

How can I do to close a window popup opened from an input file (“Choose files” button like on the capture) since ui.vision ?

I tried this but the popup is still opened…

The code :

{
“Command”: “executeScript_Sandbox”,
“Target”: “var c = window.close(); return c;”,
“Value”: “c”
}

Thanks in advanced

To close popup i use Xtype with combination of ${KEY_CTRL+KEY_W}

Need more attention because you need to have focus on popup

2 posts were split to a new topic: Mac KEY_CMD+KEY_W