Get ElementInfo from Adapter : Automation API

Get ElementInfo from Adapter

Class library usage, coding and language questions.

Get ElementInfo from Adapter

Postby jtruppia » Thu Nov 03, 2011 10: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?
jtruppia
 
Posts: 11
Joined: Sat Oct 22, 2011 1:35 am

Re: Get ElementInfo from Adapter

Postby Support Team » Fri Nov 04, 2011 12:45 pm

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
User avatar
Support Team
Site Admin
 
Posts: 4843
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: Get ElementInfo from Adapter

Postby jtruppia » Fri Nov 04, 2011 4: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)
jtruppia
 
Posts: 11
Joined: Sat Oct 22, 2011 1:35 am


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests