Getting the control over an Element : Automation API

Getting the control over an Element

Class library usage, coding and language questions.

Getting the control over an Element

Postby Skarlso » Tue Aug 12, 2008 9: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.
Skarlso
 
Posts: 27
Joined: Thu Aug 07, 2008 10:11 am

Postby Support Team » Tue Aug 12, 2008 5: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
User avatar
Support Team
Site Admin
 
Posts: 4843
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Postby Skarlso » Wed Aug 13, 2008 8:33 am

Thank you,

That would be really much appreciated!!

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

Thank you very much!

Gergely.
Skarlso
 
Posts: 27
Joined: Thu Aug 07, 2008 10:11 am

Postby chhb_fancy » Wed Aug 20, 2008 1:23 pm

Gabor, could you also send me a beta version?

My mail: chhb_fancy@yahoo.com

Thanks.:-)
chhb_fancy
 
Posts: 14
Joined: Thu Aug 14, 2008 3:09 am


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests

cron