Checkbox not clicking

I have noticed from other forum posts that there is a problem with clicking checkboxes
The site im accessing is https://asce7hazardtool.online/ and trying to click the wind checkbox
I have tried BringBrowserToForground, record option, xpath @type checkbox. nothing seems to be working
{
“Command”: “click”,
“Target”: “xpath=(//input[@type=‘checkbox’])[${Var}]”,
“Value”: “”
}

{
“Command”: “bringBrowserToForeground”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “open”,
“Target”: “https://asce7hazardtool.online/”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “id=Wind”,
“Value”: “on”,
“Targets”: [
“id=Wind”,
“xpath=//[@id=“Wind”]",
“xpath=//input[@id=‘Wind’]”,
“xpath=//div[2]/p/input”,
“css=#Wind”
]
},
{
“Command”: “click”,
“Target”: "xpath=//
[@id=“criteria”]/div[2]/div[4]/div[2]/p/label”,
“Value”: “”,
“Targets”: [
“xpath=//[@id=“criteria”]/div[2]/div[4]/div[2]/p/label",
“xpath=//div[2]/p/label”,
“css=#criteria > div.criteria-container__content.white.margin–small > div:nth-child(4) > div.flex.flex-row.flex-wrap.padding–small > p:nth-child(1) > label”
]
},
{
“Command”: “click”,
“Target”: “id=Wind”,
“Value”: “”,
“Targets”: [
“id=Wind”,
"xpath=//
[@id=“Wind”]”,
“xpath=//input[@id=‘Wind’]”,
“xpath=//div[2]/p/input”,
“css=#Wind”
]
}

Working like a charm, need to find a good xpath like this (found with firefox)

{
  "Name": "checkbox",
  "CreationDate": "2020-9-18",
  "Commands": [
    {
      "Command": "bringBrowserToForeground",
      "Target": "",
      "Value": ""
    },
    {
      "Command": "click",
      "Target": "xpath=//label[@for='toggleSnapTo']",
      "Value": ""
    }
  ]
}

Wind, snow and seismic checkboxes not this one

I do not see any other checkbox in the site.

Post scrrencast please and write other details please

You can click the “wind” box with the following:

click | //label[contains(text(),'Wind')]

Just change Wind to snow, etc.

@newuserkantu it comes up after you put in an address, the OP didn’t mention that

2 Likes

thats it! perfect, thanks