Get ElementInfo from Adapter

Class library usage, coding and language questions.
jtruppia
Posts: 11
Joined: Sat Oct 22, 2011 12:35 am

Get ElementInfo from Adapter

Post by jtruppia » Thu Nov 03, 2011 9:16 pm

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?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Get ElementInfo from Adapter

Post by Support Team » Fri Nov 04, 2011 11:45 am

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
.
Image

jtruppia
Posts: 11
Joined: Sat Oct 22, 2011 12:35 am

Re: Get ElementInfo from Adapter

Post by jtruppia » Fri Nov 04, 2011 3:19 pm

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)