Page 1 of 1

Get ElementInfo from Adapter

Posted: Thu Nov 03, 2011 9:16 pm
by jtruppia
How can I get the ElementInfo if I already have the Adapter?

Also, besides the code examples of using the Automation API, is there any tutorial or article or whatsoever exploring the usage of the API?

Re: Get ElementInfo from Adapter

Posted: Fri Nov 04, 2011 11:45 am
by Support Team
Hi,

You can create a new instance of the ElementInfo class like this:
Ranorex.Core.ElementInfo info = Ranorex.Core.ElementInfo.Create(Adapter.Element, Boolean, Boolean, "YourSourceName");
Also, besides the code examples of using the Automation API, is there any tutorial or article or whatsoever exploring the usage of the API?
There are just some small code examples, but unfortunately there is no small API tutorial, but if you click on Help, in Ranorex Studio, you can open the .Net API Documentation and there you will find all the existing methods of the Ranorex API with a brief explanation.

Regards,
Markus
Ranorex Support Team

Re: Get ElementInfo from Adapter

Posted: Fri Nov 04, 2011 3:19 pm
by jtruppia
Thanks Marcus.
You should really consider adding a small tutorial on this, and also implementing a search box in the API doc on the website, it is really cumbersome to search for classes and methods (I don't use Ranorex Studio, just the Spy and VS)