Unable to test if the checkbox is checked

Ask general questions here.
anouar2002
Posts: 38
Joined: Thu Feb 27, 2020 2:06 pm

Unable to test if the checkbox is checked

Post by anouar2002 » Thu Nov 11, 2021 2:34 pm

Hello,

I am using Ranorex 9.3.4 to test a Desktop application based on WPF by using DevExpress controls.
I want to check if my checkbox is checked. The problem that Ranorex identify my checkbox as a "Button" and it is not possible to test if this checkbox (taken as button) is checked in the validation process.
Is there any solution to do that ? I tried with "Checked = True" but it doen't work.

Enclosed it the snapshot of the checkbox "Fixiere Eigenschaftsspalt".

User avatar
tmcdoniel
Certified Professional
Certified Professional
Posts: 78
Joined: Mon Dec 07, 2020 6:30 pm

Re: Unable to test if the checkbox is checked

Post by tmcdoniel » Thu Nov 11, 2021 5:37 pm

When I viewed your rxsnp I couldn't navigate to the individual elements in that panel. When you record, is it properly tracking those elements with the highlighted red bounding box around each object?

Image
Sales Engineer @ Ranorex

anouar2002
Posts: 38
Joined: Thu Feb 27, 2020 2:06 pm

Re: Unable to test if the checkbox is checked

Post by anouar2002 » Fri Nov 12, 2021 7:52 am

Hi tmcdoniel,

Thanks for your reply.
Yes I know. I cannot also expand the objects but I want track the elements during the recording, I track it correctly. That's mean that the object will be highlighted in red.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Unable to test if the checkbox is checked

Post by odklizec » Fri Nov 12, 2021 8:13 am

Hi,

In my opinion, this kind of issue is caused by a bad implementation of accessibility at DevExpress side. Please try to track the element with MS Inspect tool and see if it returns "Checked" attribute for given control...
https://docs.microsoft.com/en-us/window ... ct-objects
My guess it will not. There is unfortunately nothing you can do about this, except to report this problem to DevExpress folks. And the only solution you may eventually implement in your test is image-based validation.

BTW, try also the most recent Ranorex 10.1.2. Your version is pretty much obsolete and no longer supported. I don't think that it will help you with your particular problem, but it's always good to stay updated.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

anouar2002
Posts: 38
Joined: Thu Feb 27, 2020 2:06 pm

Re: Unable to test if the checkbox is checked

Post by anouar2002 » Fri Nov 12, 2021 11:13 am

Hello Pavel,

Thanks for your reply.
I think you have right. I installed the Windows Automation Tools and after inspected my AUT, I didn't find any attribut "IsChecked" for the checkbox element "Fixiere Eigenschaftspalten" as shown in the following screenshot:
https://imgur.com/a/k6j09QX

I will try to cpntact DevExpress Support but I am not sure that it will resolve the problem.

The problem of image based validation that it won't work from a computer to another. That's mean it will work on my side but not on my colleague side if he didn't has the same resolution settings.