Macro doesn't select checkbox after command

Hi there,

I’m trying to end my first Marcro :smiley: and I’m having problems with the last three commands. When playing it I can see how the macro is interacting with them but they don’t get checked.

I could really use some help if I’m doing something wrong.

{
  "CreationDate": "2018-8-12",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://www.covermanager.com/reservation/crossselling/tickets-bar/catalan/?people=8&day=2018-08-28&hour=20:00",
      "Value": ""
    },
    {
      "Command": "selectFrame",
      "Target": "index=0",
      "Value": ""
    },
    {
      "Command": "select",
      "Target": "id=extra-box-select",
      "Value": "label=Ruinart"
    },
    {
      "Command": "click",
      "Target": "//*[@id=\"reservar_button\"]/input",
      "Value": ""
    },
    {
      "Command": "type",
      "Target": "id=user_first_name",
      "Value": "John"
    },
    {
      "Command": "type",
      "Target": "id=user_last_name",
      "Value": "Doe"
    },
    {
      "Command": "type",
      "Target": "id=user_email",
      "Value": "JohnDoe@gmail.com"
    },
    {
      "Command": "type",
      "Target": "id=user_phone",
      "Value": "123456789"
    },
    {
      "Command": "type",
      "Target": "id=postal_code",
      "Value": "08008"
    },
    {
      "Command": "type",
      "Target": "id=no_food_restrictions",
      "Value": "on"**
    },
    {
      "Command": "type",
      "Target": "id=legal_ficha",
      "Value": "on"**
    },
    {
      "Command": "type",
      "Target": "id=consentimiento_legal",
     "Value": "on"
    }
  ]
}

Are these checkboxes? If so, try changing the TYPE to a CLICK command… does that help?

Hi ulrich thanks for the answer. I’ve already tried that and the results are the same I can see the Macro interacting with the checkbox but at the end they are not checked :frowning:

Thanks for the good test case, I confirmed the problem. At the moment, this looks strange and I am not sure why it fails.

I can also tell you that our September update will bring a new click command that solves this kind of “click is not registered by page element” issue for sure, because it works with truly every checkbox, link etc. But if you find a workaround in the meantime i would be interested to hear about it.

Hello,
Same issue for me : checkboxes not checked, and tested with click, type, clickAt…
Did someone find a workaround ?
Thanks a lot
Regards

@Thomas Do you have a website link for us to test?

image

No sorry, access is private, and I’m not able to reproduce on other websites… I uploaded the checkbox html code, but not sure this will help. It is located in an iframe. The html code isn’t very nice (government website…), but I can see Kantu interacting with the checkbox (highlighted in green). It just won’t get checked.

{
“CreationDate”: “2018-9-24”,
“Commands”: [
{
“Command”: “selectFrame”,
“Target”: “index=0”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “/html/body/table/tbody/tr[2]/td[2]/form/table/tbody/tr[3]/td/table/tbody/tr[4]/td/table/tbody/tr[7]/td[2]/input[1]”,
“Value”: “true”
},
{
“Command”: “click”,
“Target”: “/html/body/table/tbody/tr[2]/td[2]/form/table/tbody/tr[3]/td/table/tbody/tr[4]/td/table/tbody/tr[7]/td[2]/input[1]”,
“Value”: “0”
},
{
“Command”: “type”,
“Target”: “name=autre”,
“Value”: “true”
},
{
“Command”: “click”,
“Target”: “name=autre”,
“Value”: “”
}
]
}

So I just tested by using the iframe inner page directly (so without iframe), and it worked.

Still same issue. Tried everything. Can someone please help?

With xclic you can click every checkbox always

Post url of websites and i solve this problem for you

Thanks it worked using xclick in my office system. But in my windows 10 laptop xmodules are not getting installed. Even after downloading it status is reflected as uninstalled. Can you please help?’

If you link the page i can try to find a solution.

It’s possibile some element in the page kantu do not recognize, in these cases need to use xclick or simulation keyboard.

If you can not post a website url it’s impossible to search a solution.