Activity to check whether check box is checked or not

hello community
Is there any activity in which I can check whether a check box is marked or not?
I already tested the check element activity but it only says whether the check box is there or not, not whether it is checked or not

Hi @amanda.gondim

You can use Check/UnCheck activity. It is an modern activity that is used in Use Application/Browser activity.

image

For more information check the below documentation:

Regards

use get attribute and in that aastate to see if the checkbox is checked or unchecked .
output of aastate is checked it means its already checked hope u got it

hello
but doesn’t this activity just check and uncheck a checkbox? I would have to check if it is checked

Hello!


I may have done something wrong, but it didn’t work either

Okay please use the get attribute activity and then take the appropriate attribute and then save that to a variable and that will be an boolean variable and from that you can get the required output. @amanda.gondim

Regards

Can you share the screenshot of all the attributes present in the UiExplorer of strict selector? @amanda.gondim

Regards

use from the activity attribute from drop down aastae not a

I don’t understand, the attribute field asks for a string

Could you explain again? I can not understand

Ca you share the screenshot of the attribute present in the dropdown of get attribute activity? @amanda.gondim

Regards

Hi refer below image

@amanda.gondim

Two ways

  1. Use a get attribute and get the attribute values which changes and check that values is as per the checked value or not
  2. Use a check app state with selector containing attributes related to only checked checkbox fields …this ensures only checked fields are detected

Cheers

@amanda.gondim
Use the Get Attribute activity and configure it to target the checkbox.
Element: Indicate the checkbox element on the screen.
Attribute: Set to checked for web applications or CheckState/Checked for desktop applications.
Add an If Activity:
If attributeValue = “true” Then
’ Checkbox is checked
Else
’ Checkbox is not checked
End If

----------------OR----------------------

Take screenshots of the checkbox in both checked and unchecked states.
Use the Element Exists activity twice: once for the checked state and once for the unchecked state.
Based on which Element Exists activity returns True, you can determine the state of the checkbox.