When running the refresh command I get the error 'Error in invocation of windows.get(integer windowId, optional windows.QueryOptions queryOptions, function callback): No matching signature.'

Error in invocation of windows.get(integer windowId, optional windows.QueryOptions queryOptions, function callback): No matching signature.

What is strange is I get this error message and I just ran two macros on this same tab a minute before.
It acts like the page or even browser isn’t there but it most definitely is.

1 Like

I clicked on a different tab. Clicked back to the original tab and reloaded the page. And just like that, it worked as expected. Wierd.

Having the same issue. Switching to a new tab fixes it too but it keeps happening. Not sure what’s going on. V9.2.9

Hi, do you have any test macro or maybe video of this? We have not seen this error yet.

No, nor am I sure of what triggered it. Have not been able to replicate since.

I reproduced this issue 3 times and had a record of this. But after I do record I can’t reproduce it to collect details. :frowning:
here is link to video that I’ve shot

Current workaround for me is restart Chrome and start macro again.
p.s. For now I can’t reproduce the issue in a small script, but the working script reproduce this issue without problem.

card_dpi_96
hola_bandera_dpi_96
Here is the test code that course the error on the restart after error on line 14 or 15
The resolution of screen is FHD.

{
  "Name": "bug_report",
  "CreationDate": "2024-9-11",
  "Commands": [
    {
      "Command": "comment",
      "Target": "",
      "Value": "https://forum.ui.vision/t/when-running-the-refresh-command-i-get-the-error-error-in-invocation-of-windows-get-integer-windowid-optional-windows-queryoptions-queryoptions-function-callback-no-matching-signature/15283",
      "Description": ""
    },
    {
      "Command": "XDesktopAutomation",
      "Target": "false",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "executeScript_Sandbox",
      "Target": "return true",
      "Value": "TRUE",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "https://www.telcel.com/",
      "Value": "base_url",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "9651280697",
      "Value": "phone_num",
      "Description": ""
    },
    {
      "Command": "executeScript_Sandbox",
      "Target": "var d= new Date(); \nvar m=((d.getMonth()+1)<10)?'0'+(d.getMonth()+1):(d.getMonth()+1); \nvar day =(d.getDate()<10)?'0'+d.getDate():d.getDate(); \nreturn d.getFullYear()+\"-\"+m+\"-\"+day;",
      "Value": "today",
      "Description": ""
    },
    {
      "Command": "open",
      "Target": "https://www.telcel.com/",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "medium",
      "Value": "!replayspeed",
      "Description": ""
    },
    {
      "Command": "XDesktopAutomation",
      "Target": "true",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "XClick",
      "Target": "hola_bandera_dpi_96.png",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "pause",
      "Target": "1000",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "selectWindow",
      "Target": "title=Asistente Virtual Telcel",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "XClick",
      "Target": "Paga_Compra_recarga_dpi_96.png",
      "Value": "",
      "Targets": [
        "xpath=//*[@id=\"containerChat\"]/div[2]/div/div/div/div[2]/button/span",
        "xpath=//div[2]/button/span",
        "css=#containerChat > div:nth-child(2) > div > div > div.alinea-div-avatar.oscuro.TelcelBot.MX > div:nth-child(2) > button > span.v-btn__content"
      ],
      "Description": ""
    },
    {
      "Command": "XClick",
      "Target": "card_dpi_96.png",
      "Value": "",
      "Targets": [
        "xpath=//*[@id=\"containerChat\"]/div[4]/div/div[2]/div/div[2]/button/span",
        "xpath=//div[2]/div/div[2]/button/span",
        "css=#containerChat > div:nth-child(4) > div > div.border-second.oscuro.TelcelBot.MX > div.alinea-div-avatar.oscuro.TelcelBot.MX > div:nth-child(2) > button > span.v-btn__content"
      ],
      "Description": ""
    },
    {
      "Command": "selectFrame",
      "Target": "index=0",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "pause",
      "Target": "2000",
      "Value": "",
      "Description": ""
    }
  ]
}