Hi
Is there a way of getting relative path from the window, For example
There is a main window, and a child window and child window has controls say button. I want to get the relative path from the child window to controls. At the moment i can only get the path from themain window.
May be somebody has already done that
Relative Rxpath to windows controls
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Try calling
GetPath(PathBuildMode buildMode, Element relativeToElement)
on an Element instance.
(if you have an Adapter of some kind you can get the element instance
by using the .Element property)
e.g.
Form myWindow = ...
Button myButton = ...
RxPath theRelativePath = myButton.Element.GetPath(PathBuildMode.Reduce, myWindow);
Michael
Ranorex Team
GetPath(PathBuildMode buildMode, Element relativeToElement)
on an Element instance.
(if you have an Adapter of some kind you can get the element instance
by using the .Element property)
e.g.
Form myWindow = ...
Button myButton = ...
RxPath theRelativePath = myButton.Element.GetPath(PathBuildMode.Reduce, myWindow);
Michael
Ranorex Team