Technology specific object identification, supported applications, web technologies, and 3rd party controls.
- Posts: 19
- Joined: Mon Mar 10, 2014 5:13 pm
I need to get RanorexGroupObjectId value from code.
For example is it possible to do like this:
Ranorex.Text text = Host.Local.FindSingle<Text>(".//text[@automationid='textID']");
var ranorexObjectId = text.GetRanorexObjectID(); //is there any method/property/rxPathCommand to get ranorexGroupObjectID?
Is there any method/property/rxPathCommand to get ranorexGroupObjectID?
Windows Sever 2012, R2
- Posts: 174
- Joined: Mon Mar 21, 2016 3:16 pm
You could access the attribute the way you described.
Code: Select all
However, since this id is a dynamically generated ID (changes at every AUT start), it will not make that much sense to use it in a RxPath. That means that this element will not be found anymore, after you restart your AUT.
Hope that helps.