Macro doesn't select checkbox after command


#1

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"
    }
  ]
}

#2

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


#3

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:


#4

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.


#5

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


#6

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


#7

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”: “”
}
]
}


#8

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