missing Element.Control method
-
- Posts: 55
- Joined: Thu Aug 23, 2007 12:00 pm
missing Element.Control method
why it isn't possible to go from element-level to control level ?
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
There is such a property in the Element class in Ranorex 1.5.1:
If this does not work, i.e. the property returns null, then you can use the Control.FromPoint method, it returns the control object at the given point. The argument specifies the point in screen coordinates.
Sample:
Jenö
Ranorex Team
Code: Select all
Control control = element.Control;
Code: Select all
public static Control FromPoint(Point point)
Code: Select all
Control control = Control.FromPoint(element.Location);
Ranorex Team
-
- Posts: 55
- Joined: Thu Aug 23, 2007 12:00 pm
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact: