How to trigger/click "save" on a download dialog?

vivaldi brower. (on Linux)
a while after clicking a button to generate a backup, the file is being pushed from the server.
Vivaldi browser (like any browser) asks me to “save / cancel”

  • how can I interact with that dialog? - the “record” does not handle it.

I did try:

    {
      "Command": "visualSearch",
      "Target": "Save-button.png@0.70",
      "Value": "count",
      "Description": ""
    },
    {
      "Command": "clickAt",
      "Target": "#elementFromPoint (${!imageX}, ${!imageY})",
      "Value": "",
      "Description": ""
    },

the first command finds the image, the second is somehow wrong

Xtype

XType Example section

To interact with the download dialog in the Vivaldi browser on Linux, you can try using the following steps:

After clicking the button to generate the backup, wait for the download dialog to appear.
Use the “visualSearch” command to locate the “Save” button on the dialog using an image search.
Once the button is located, you can use the “clickAt” command to click on the button and save the file.
Here’s an example script that demonstrates how to do this:

{
  "Command": "visualSearch",
  "Target": "Save-button.png@0.70",
  "Value": "count",
  "Description": "Locate the Save button on the download dialog"
},
{
  "Command": "clickAt",
  "Target": "#elementFromPoint (${!imageX}, ${!imageY})",
  "Value": "",
  "Description": "Click the Save button on the download dialog"
}

Make sure to replace “Save-button.png” with the actual filename of the image you want to use for the visual search and adjust the similarity threshold (“0.70”) if necessary to ensure accurate detection of the button.

I hope it will help you.

1 Like