# Check box issue

**URL:** <https://forum.uipath.com/t/check-box-issue/86740>\
**Category:** Help\
**Tags:** uiautomation, activities\
**Created:** [January 8, 2019, 4:10pm UTC](https://forum.uipath.com/t/check-box-issue/86740 "2019-01-08T16:10:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![aman\_sheik](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/aman_sheik/32/44703_2.png) [@aman\_sheik](https://forum.uipath.com/u/aman_sheik)\
**Post date:** [January 8, 2019, 4:10pm UTC](https://forum.uipath.com/t/check-box-issue/86740/1 "2019-01-08T16:10:22Z")

</div>

Hi

 ![IMG_20190108_211911_HDR](https://global.discourse-cdn.com/uipath/original/3X/4/f/4f973106a3cc02542c979c8040caa7f1a77558da.jpeg)

We are trying to uncheck the check in oracle EBS Application.we used check activity but it’s not working.the current selector image iam attaching here. Please help us in getting the “javastate” for the checkbox with Get attribute activity.

Thankq  
Aman sheik

---

<div class="post-metadata">

**Author:** ![loginerror](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/loginerror/32/22614_2.png) [@loginerror](https://forum.uipath.com/u/loginerror)\
**Post date:** [January 8, 2019, 4:53pm UTC](https://forum.uipath.com/t/check-box-issue/86740/2 "2019-01-08T16:53:50Z")

</div>

Made this topic public on January 8, 2019, 4:53pm UTC



---

<div class="post-metadata">

**Author:** ![loginerror](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/loginerror/32/22614_2.png) [@loginerror](https://forum.uipath.com/u/loginerror)\
**Post date:** [January 8, 2019, 4:56pm UTC](https://forum.uipath.com/t/check-box-issue/86740/3 "2019-01-08T16:56:11Z")

</div>

Hi @aman_sheik

You can indeed do the check by using the Get Attribute. All you need to do is to indicate the element and get the attribute of the “javastate”.  
It will return the string, such as on your screenshot:  
“enabled,focusable,visible,showing,opaque” for the checkbox that is not checked and probably  
“enabled,focusable,visible,showing,opaque,checked” for the one that is checked

To base a decision on that, you can then use a simple .Contains method on your string:  
yourString.Contains(“checked”) → this will return either True or False, depending if the checkbox is checked or not 🙂

---

<div class="post-metadata">

**Author:** ![mudunura](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mudunura/32/167283_2.png) [@mudunura](https://forum.uipath.com/u/mudunura)\
**Post date:** [January 8, 2019, 5:05pm UTC](https://forum.uipath.com/t/check-box-issue/86740/4 "2019-01-08T17:05:10Z")

</div>

Hi  
are you getting any error on this ?  
if you get error with selector in oracle application better to go with click image.  
i also faced these type of issues while i was automating some oracle related application, at that time i have done everything as citrix automation by clicking images and sending hotkeys.  
so better to go with automation with images.

---

<div class="post-metadata">

**Author:** ![aman\_sheik](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/aman_sheik/32/44703_2.png) [@aman\_sheik](https://forum.uipath.com/u/aman_sheik)\
**Post date:** [January 8, 2019, 5:32pm UTC](https://forum.uipath.com/t/check-box-issue/86740/5 "2019-01-08T17:32:37Z")

</div>

Thankq @loginerror.  
Actually we tried this one but iam not getting any javastate value.we tried in write line activity to check it’s not showing anything. Can you please share a sample file to get the javastate value.

Thankq  
Aman sheik

---

<div class="post-metadata">

**Author:** ![loginerror](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/loginerror/32/22614_2.png) [@loginerror](https://forum.uipath.com/u/loginerror)\
**Post date:** [January 8, 2019, 7:29pm UTC](https://forum.uipath.com/t/check-box-issue/86740/6 "2019-01-08T19:29:34Z")

</div>

You might need to play around with the selector. Unfortunately I don’t have access to the java application that would still allow me to provide you with an example ☹

Edit.  
I found an older thread that might help you 🙂 It has a sample java app provided by the user 😃

> [@Java Application - How to click grayed out elements](https://forum.uipath.com/t/java-application-how-to-click-grayed-out-elements/68411):
>
> I need to click if the Uielement is enabled like below. [image] . If it is grayed out/opaque/ disabled then it should not click the button like below image [image] please advise if it is possible with click activity not with image activity.

---

<div class="post-metadata">

**Author:** ![aman\_sheik](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/aman_sheik/32/44703_2.png) [@aman\_sheik](https://forum.uipath.com/u/aman_sheik)\
**Post date:** [January 9, 2019, 4:58pm UTC](https://forum.uipath.com/t/check-box-issue/86740/7 "2019-01-09T16:58:29Z")

</div>

Thanks a lot @loginerror…it’s worked with get attribute “javastate”.😃

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [January 12, 2019, 4:58pm UTC](https://forum.uipath.com/t/check-box-issue/86740/8 "2019-01-12T16:58:40Z")

</div>

Closed on January 12, 2019, 4:58pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
