Page 1 of 1

How to access elements of a custom list?

Posted: Wed Mar 02, 2016 10:06 am
by wyssmana
I have a custom data list (with columns and rows) in my application which is just recognized as container, I would like to access the element in the container (e.g. a specific row, column, cell).

As I have the control type (Tools.DataListPanel), I would like to convert the Ranorex.Container to Tools.DataListPanel in order to be able to access the properties and methods of this object. Unfortunately I am not sure on how to do so. Any suggestions

I already added the dll to the references in the Ranorex Project

Re: How to access elements of a custom list?

Posted: Fri Mar 04, 2016 10:28 am
by odklizec
Hi,

Could you please post a Ranorex snapshot (not screenshot) of the problematic container? I'm afraid, there is not much we can do for you without snapshot or a sample app showing the element.

Re: How to access elements of a custom list?

Posted: Mon May 23, 2016 5:05 pm
by wyssmana
Unfortunatley I cannot provide you a snaphshot but I can give you more details:

Element 'OStudioWcFTabList':
Class: OStudioWcFTabList
Process: ostud713
List Elements
OStudioWcList.jpg

Re: How to access elements of a custom list?

Posted: Tue May 24, 2016 7:37 am
by odklizec
Hi,

I'm sorry, but screenshots are not helpful at all. In fact, I think even snapshot would be not much of a use in this particular case. I think we would need a small sample app with problematic control, which would help us to decide what can or cannot be done. Can you ask your devs. to create such sample? A simple "hello world" app with hardcoded custom list would do the trick.

The problem is, that the control in question (of unknown GUI technology) is apparently not automation friendly, with no or very limited/incorrect implementation of Accessibility. This (accessibility) must be added at a code level of given control. Sadly, not all GUI control makers do it (some purposely, some due to the automation/disability ignorance).

There is also another way, how to implement missing accessibility, via advanced coding techniques, like subclassing. This allows to add missing accessibility even without access to control's code. This is unfortunately not the easiest and not 100% working solution.

Please follow the links mentioned in this post:
http://www.ranorex.com/forum/image-base ... tml#p32681