Forum Discussion

deepa_samota's avatar
deepa_samota
Contributor
2 years ago
Solved

Desktop application checkbox issue

I am not able to check checkbox for desktop application ,getting following error 

  

checkboxBrazil.ClickButton(cbChecked);

 

The check box was clicked, but the specified state was not set up .  

  • Instead of clicking the checkbox, maybe you could set it as checked by using "set_item" or "wState [Set]"

    This is how I deal with most checkboxes, hope it works for you.

    Ex. 

    Set item is in a grid, it uses col and row to find the cell to change

    wState checks the namemapped item to true or false

1 Reply

  • MW_Didata's avatar
    MW_Didata
    Regular Contributor

    Instead of clicking the checkbox, maybe you could set it as checked by using "set_item" or "wState [Set]"

    This is how I deal with most checkboxes, hope it works for you.

    Ex. 

    Set item is in a grid, it uses col and row to find the cell to change

    wState checks the namemapped item to true or false