Not able to get findform options in Application

Ranorex Spy, Recorder, and Studio.
bheemuabhigna
Posts: 49
Joined: Thu Feb 03, 2011 3:15 pm

Not able to get findform options in Application

Post by bheemuabhigna » Thu Aug 04, 2011 7:56 am

Hi,

I am trying to use "application.findformclassname()" option in my scripts
But I am unable to find any find option(findformclassname,findformtitle, etc., ) in Application object
We are using Ranorex 3.0.1 and I have added Ranorex.core.dll also.

Is there anything else I have to do to get these options.
Please let me know

Thanks,
Abhigna

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

Re: Not able to get findform options in Application

Post by Support Team » Thu Aug 04, 2011 10:04 am

The Ranorex 1.X methods you are referring to are no longer available since Ranorex 2.0. The API changed drastically from 1.X to 2.X; Ranorex 2.X is rather a new product then just a new version.

Since version 2.0 Ranorex uses RanoreXPath to identify and search for all UI elements. Please, see the Ranorex User Guide for more information:
http://www.ranorex.com/support/user-guide-20.html

Regards,
Alex
Ranorex Team
.
Image

bheemuabhigna
Posts: 49
Joined: Thu Feb 03, 2011 3:15 pm

Re: Not able to get findform options in Application

Post by bheemuabhigna » Mon Aug 08, 2011 7:38 am

Thanks for information.
I am trying to capture image of desktop.
So, I found some article to read desktop as form and capturing it.
please let me know how can I have a screenshot of desktop.

I am capturing screenshot of browser. If browser is not available, the script should capture the desktop image

Thanks,
Abhigna

User avatar
sdaly
Posts: 238
Joined: Mon May 10, 2010 11:04 am
Location: Dundee, Scotland

Re: Not able to get findform options in Application

Post by sdaly » Mon Aug 08, 2011 8:07 am

This might help -

Code: Select all

Ranorex.Desktop desktop = "/desktop";
Report.Screenshot(desktop);

bheemuabhigna
Posts: 49
Joined: Thu Feb 03, 2011 3:15 pm

Re: Not able to get findform options in Application

Post by bheemuabhigna » Mon Aug 08, 2011 10:13 am

Thank You Very much

It was very helpful.

Thanks,
Abhigna