Click ain't clicking

This worked for me a few months ago (it’s a code I use every January and September/October) but now my clicks won’t click.

The first one will, but once I get to line 7, no dice. We use this inside Peoplesoft to change some background student coding for data.

Tried Xclick, it worked, but I don’t have the money for a license. So any help would be appreciated.

{
  "Name": "BatchV1-Student Uncoding beta (1)",
  "CreationDate": "2022-10-12",
  "Commands": [
    {
      "Command": "csvRead",
      "Target": "studentcodes.csv",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "open",
      "Target": "website here that it opens",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "selectFrame",
      "Target": "id=ptifrmtgtframe",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "type",
      "Target": "id=STDNT_SRCH_EMPLID",
      "Value": "${!COL1}",
      "Targets": [
        "id=STDNT_SRCH_EMPLID",
        "name=STDNT_SRCH_EMPLID",
        "xpath=//*[@id=\"STDNT_SRCH_EMPLID\"]",
        "xpath=//input[@id='STDNT_SRCH_EMPLID']",
        "xpath=//td[3]/div/input",
        "css=#STDNT_SRCH_EMPLID"
      ],
      "Description": ""
    },
    {
      "Command": "click",
      "Target": "id=#ICSearch",
      "Value": "",
      "Targets": [
        "id=#ICSearch",
        "name=#ICSearch",
        "xpath=//*[@id=\"#ICSearch\"]",
        "xpath=//input[@id='#ICSearch']",
        "xpath=//a/span/input",
        "css=##ICSearch"
      ],
      "Description": ""
    },
    {
      "Command": "pause",
      "Target": "1000",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "click",
      "Target": "linkText=Last",
      "Value": "",
      "Targets": [
        "linkText=Last",
        "id=$ICField5$hend$0",
        "name=$ICField5$hend$0",
        "xpath=//*[@id=\"$ICField5$hend$0\"]",
        "xpath=//a[@id='$ICField5$hend$0']",
        "xpath=//a[4]",
        "css=#$ICField5$hend$0"
      ],
      "Description": ""
    },
    {
      "Command": "do",
      "Target": "",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "echo",
      "Target": "Find the code!",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "click",
      "Target": "id=$ICField5$hup$0",
      "Value": "",
      "Targets": [
        "id=$ICField5$hup$0",
        "name=$ICField5$hup$0",
        "xpath=//*[@id=\"$ICField5$hup$0\"]",
        "xpath=//a[@id='$ICField5$hup$0']",
        "xpath=//a[4]",
        "css=#$ICField5$hup$0"
      ],
      "Description": ""
    },
    {
      "Command": "pause",
      "Target": "700",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "storeValue",
      "Target": "id=STDNT_GRPS_STDNT_GROUP$0",
      "Value": "group",
      "Targets": [
        "id=STDNT_GRPS_STDNT_GROUP$0",
        "name=STDNT_GRPS_STDNT_GROUP$0",
        "xpath=//*[@id=\"STDNT_GRPS_STDNT_GROUP$0\"]",
        "xpath=//input[@id='STDNT_GRPS_STDNT_GROUP$0']",
        "xpath=//tr[6]/td[2]/div/input",
        "css=#STDNT_GRPS_STDNT_GROUP$0"
      ],
      "Description": "group"
    },
    {
      "Command": "comment",
      "Target": "${!COL2}",
      "Value": "${!COL2}",
      "Description": ""
    },
    {
      "Command": "repeatIf",
      "Target": "${group} != ${!COL2}",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "click",
      "Target": "id=$ICField10$new$0$$0",
      "Value": "",
      "Targets": [
        "id=$ICField10$new$0$$0",
        "name=$ICField10$new$0$$0",
        "xpath=//*[@id=\"$ICField10$new$0$$0\"]",
        "xpath=//a[@id='$ICField10$new$0$$0']",
        "xpath=//tr[9]/td[2]/div/table/tbody/tr[2]/td/table/tbody/tr[2]/td[2]/a",
        "css=#$ICField10$new$0$$0"
      ],
      "Description": ""
    },
    {
      "Command": "pause",
      "Target": "500",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "selectAndWait",
      "Target": "id=STDNT_GRPS_HIST_EFF_STATUS$0",
      "Value": "label=Inactive",
      "Targets": [
        "id=STDNT_GRPS_HIST_EFF_STATUS$0",
        "name=STDNT_GRPS_HIST_EFF_STATUS$0",
        "xpath=//*[@id=\"STDNT_GRPS_HIST_EFF_STATUS$0\"]",
        "xpath=//select[@id='STDNT_GRPS_HIST_EFF_STATUS$0']",
        "xpath=//select",
        "css=#STDNT_GRPS_HIST_EFF_STATUS$0"
      ],
      "Description": ""
    },
    {
      "Command": "click",
      "Target": "id=#ICSave",
      "Value": "",
      "Targets": [
        "id=#ICSave",
        "name=#ICSave",
        "xpath=//*[@id=\"#ICSave\"]",
        "xpath=//input[@id='#ICSave']",
        "xpath=//span/input",
        "css=##ICSave"
      ],
      "Description": ""
    },
    {
      "Command": "if_v2",
      "Target": "${!LOOP} == ${!csvReadMaxRow}",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "echo",
      "Target": "Get Ready for CELEBRATION TIME!!!",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "open",
      "Target": "https://youtu.be/JhDIILjlhBQ?t=12s",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "endif",
      "Target": "",
      "Value": "",
      "Description": ""
    }
  ]
}

Same issue for me, XClick working a few days ago, now none of the Xmodules working. I have tried uninstalling, reinstalling, and have setup the security settings correctly on my mac. I am on MacOS Monterey version 12.8 on an M1, 2020

this is frustrating as the scripts were working and really need them to be working again ASAP.

Xclick can be run 25 times

alternatively get 3rd part tool to launch and click (use xrun command)

That had happened to me, too. When Kantu moved out of version 6 into higher they started using a different different implementation base that is more restricted now but required by chrome. That broke some of my click commands and I had get around it with xclick which does not work as well.
I think firefox still runs on the old Kantu Engine v6. It still should work there.