Tree-item with checkbox not identified. Also parent-child hierarchy missing.

Ask general questions here.
ppatil
Posts: 2
Joined: Mon Sep 16, 2019 11:46 am

Tree-item with checkbox not identified. Also parent-child hierarchy missing.

Post by ppatil » Wed Nov 27, 2019 11:38 am

Hi,
I am working with container data panel that has a tree with parent tree-items and child cells. Attached is the image for actual control on screen and its item track in Ranorex Spy.
The parent tree-item contains a checkbox with image attached next to it. But Ranorex Spy does not identify the checkboxes in that tree-item.
The child items are also shown as tree-item and not as child of existing tree-item.
ActualControl.png
ActualControl.png
Also attached is the Ranorex snapshot file.

Kindly provide a solution or workaround for the issue

I am using Ranorex version: 9.1 on windows 10
Thank you in advance for your support.
You do not have the required permissions to view the files attached to this post.

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

Re: Tree-item with checkbox not identified. Also parent-child hierarchy missing.

Post by odklizec » Thu Dec 05, 2019 1:28 pm

Hi,

At first, the snapshot you posted, throws a technology limitation warning:
WinForm_TechnologyLimitation.png
You need to review the reason of this warning and do whatever is suggested to fix the source of this warning. This is also most probably a reason of your problem.

At next, you are using an outdated Ranorex version. Please update to most recent 9.2.1. It may not fix your issue, anyway, it's not a good idea to stick with an outdated and no longer supported Ranorex version. There were a lot of feature improvements and bug fixes introduced since 9.1.1.
You do not have the required permissions to view the files attached to this post.
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

ppatil
Posts: 2
Joined: Mon Sep 16, 2019 11:46 am

Re: Tree-item with checkbox not identified. Also parent-child hierarchy missing.

Post by ppatil » Thu Dec 12, 2019 10:52 am

Hi,
Updated to latest version of Ranorex 9.2.1. Not getting any warning message.
Still the issue is coming that the parent tree-item contains a checkbox with image attached next to it. But Ranorex Spy does not identify the checkboxes in that tree-item. The child items are also shown as tree-item and not as child of existing tree-item.
Actual_control.PNG
TreeItem_Issue.rxsnp
You do not have the required permissions to view the files attached to this post.

User avatar
Stub
Posts: 515
Joined: Fri Jul 15, 2016 1:35 pm

Re: Tree-item with checkbox not identified. Also parent-child hierarchy missing.

Post by Stub » Thu Dec 12, 2019 11:56 am

If you're trying to toggle the check state of a tree item, then I've had to calculate coordinates for the checkbox beside a tree item and its associated icon. I then click outside the bounds of the tree node element itself, but there's a Ranorex API for that sort of scenario.

You might also be able to 2x-click the item to toggle the checkbox. Or select it with a single mouse click and then hit a keyboard shortcut like space. Maybe, I don't know, I just look for alternatives to get the checkbox into the state I need. I've certainly used the 2x-click trick recently.

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

Re: Tree-item with checkbox not identified. Also parent-child hierarchy missing.

Post by odklizec » Thu Dec 12, 2019 1:02 pm

Hi,

Agree with with Stub suggested. Double click (or even Spacebar shortcut) on selected cell item could 'check' the checkbox. Eventually, you might try to use SetValue action on TreeNode element, which has Checked attribute. Just try to set the Checked attribute of given element to True.
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