How to access elements of a custom list?

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
wyssmana
Posts: 3
Joined: Mon Oct 07, 2013 2:19 pm

How to access elements of a custom list?

Post by wyssmana » Wed Mar 02, 2016 10:06 am

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

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

Re: How to access elements of a custom list?

Post by odklizec » Fri Mar 04, 2016 10:28 am

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.
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

wyssmana
Posts: 3
Joined: Mon Oct 07, 2013 2:19 pm

Re: How to access elements of a custom list?

Post by wyssmana » Mon May 23, 2016 5:05 pm

Unfortunatley I cannot provide you a snaphshot but I can give you more details:

Element 'OStudioWcFTabList':
Class: OStudioWcFTabList
Process: ostud713
List Elements
OStudioWcList.jpg
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: How to access elements of a custom list?

Post by odklizec » Tue May 24, 2016 7:37 am

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
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