Check if a check box is selected or not

Hello,

I am looking for a solution on how to check if a check box is checked or unchecked on a web application. I tried using the Get Attribute activity with “checked” and I was shown an error as “Error HRESULT E_FAIL has been returned from a call to a COM component”.

Also tried using the Image exists activity and writing my logic in if condition using click activity, like if the check box is not selected it must be selected, if it is already selected it should do nothing. The output I’m getting is if the check box is not selected it is the selecting the same but if the check box is selected it is unchecking the check box. It is giving me the same ouput boolean value whatever might be the case.

Can anyone help me on how to get it working?

1 Like

Exactly same issue is faced by me, It throws same error and flow breaks out

Please share the screenshot of checkbox and is selectors.