Is the checkbox checked?

I have a couple click activities - but I was trying to validate whether or not the box is checked or not before it clicks on it (for a modify process) - I have it in a select case statement so if a particular item A is checked in the request I want it to look and see if it is already checked (ignore) or unchecked (click on it) How/what do I use in my if condition to make that happen?

THANK YOU - in advance!

1 Like

I believe you can use ‘Get Attribute’ to determine if the checkbox is checked or unchecked.

Checked & Unchecked state of a checkbox can be identified through ‘checked’ property. Also Enabled & Disabled state of a checkbox can be identified through ‘aastate’ property.

Let me know if that’s what you are looking for.

Thanks,
Rammohan B.

2 Likes

it does so I have the Get attribute in there now - What do I put where it says Attribute. Text must be quoted?
thanks!

Add the attribute name as below,
image

Thanks,
Rammohan B.

I am getting validation errors :frowning:

What the error thrown? Basically the output of the “checked” attribute is 0 or 1. 0 if unchecked and 1 if checked. Use it accordingly under if condition. Its not a boolean output.

Thanks,
Rammohan B.

Hi Rammohan91
in my case i dont have aaname or aastate attribute
uipath treating checkbox as a span tag, because of that it might not taking those attributes
in this case what can i do ?
could you please help me on this ?

HI Ram,

Where is the syntax available for these?

As soon as Get attribute block executes I get an error.

Hi,

You can use Check activity under Control. It will check the radio button, if it is not checked and will do nothing, if already checked.

thanks

1 Like

Capture

1 Like