How to click to the last checkbox

Try this code it automatically detect and click latest checkbox

If you solved click solution in my post thanks

{
  "Name": "Checkbox",
  "CreationDate": "2020-8-10",
  "Commands": [
    {
      "Command": "bringBrowserToForeground",
      "Target": "",
      "Value": ""
    },
    {
      "Command": "storeXpathCount",
      "Target": "xpath=//input[@type='checkbox']",
      "Value": "Var"
    },
    {
      "Command": "echo",
      "Target": "Latest Checkbox Is ${Var}",
      "Value": "#shownotification"
    },
    {
      "Command": "click",
      "Target": "xpath=(//input[@type='checkbox'])[${Var}]",
      "Value": ""
    }
  ]
}

Image

2 Likes