Getting the control over an Element

Class library usage, coding and language questions.
Skarlso
Posts: 27
Joined: Thu Aug 07, 2008 9:11 am

Getting the control over an Element

Post by Skarlso » Tue Aug 12, 2008 8:12 am

HI!

It's me again... :)

My problem is as follow:

I have controls all over the place and it's a tedious task going over them. Most of them don't have names, and the ID is same as handle always generated, and the class is also the same as by other controls. So. The only thing separating them from others is, position ( which is don't want to relay on, because that can change ) and the type / number / name of elements in them...

So want i want to do, is with form.Element.FindChild get the elements i'd like, and then from those elements get the control in which they are...

Apparently .Parent does not get this, it gets an element, but what i need is a Control..

So is there a solution for this then i'm missing?

Thank you very much for your time! This is really my last issue :)
Gergely.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Post by Support Team » Tue Aug 12, 2008 4:17 pm

Hi Gergely,

Your requested feature is already implemented and comes with the next Ranorex release.

Accessing the control from an element:

Code: Select all

Control parent = element.Control;
I can send you a beta version if you need this feature before the release.

Regards,
Gabor
Ranorex Support Team

Skarlso
Posts: 27
Joined: Thu Aug 07, 2008 9:11 am

Post by Skarlso » Wed Aug 13, 2008 7:33 am

Thank you,

That would be really much appreciated!!

My email address is gergely_brautigam(@)epam(.)com.

Thank you very much!

Gergely.

chhb_fancy
Posts: 14
Joined: Thu Aug 14, 2008 2:09 am

Post by chhb_fancy » Wed Aug 20, 2008 12:23 pm

Gabor, could you also send me a beta version?

My mail: [email protected]

Thanks.:-)