Save the HAR file from Developer Tools

Hello.
I am trying to download the har file from chrome developer tools. I am using the xclick on the small download button that i save as image and do the xclickrelative to click the save button. The macro runs fine but sometimes instead of clicking on download buttton, it clicks on other tabs and sometimes the save button is not clicked too.

Any suggestions on what would be a better way to do this.

"Name": "DevTools",
  "CreationDate": "2020-9-16",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://google.com",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_F12}",
      "Value": ""
    },
    {
      "Command": "XClick",
      "Target": "jv4doj_dpi_144.png",
      "Value": ""
    },
    {
      "Command": "comment",
      "Target": "onDownload // dev_tools.har",
      "Value": "true"
    },
    {
      "Command": "comment",
      "Target": "XClickRelative // ua2gic_dpi_144.png",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_ENTER}",
      "Value": ""
    }
  ]
}

Small images/icons are more difficult to find, they get more easily confused. And if this happens, the wrong place is clicked.

Solution: Use XClickRelative. This way you can use a large area as the anchor, and the click becomes very stable: