How do I build ths Form Adaptor?

Ask general questions here.
stapes
Posts: 206
Joined: Wed Sep 16, 2015 10:55 am

How do I build ths Form Adaptor?

Post by stapes » Sat Sep 26, 2015 6:52 pm

In the User Manul - Code Examples, I am looking at the first example, Using Repository.

In that code, is the following comment:

http://www.ranorex.com/support/user-gui ... html#c3199

// Using Ranorex.Form adapter represented by 'MyApp'
// 'MyApp' is used as a folder within the repository;
// the 'Self' property returns an object of type Ranorex.Form

How is MyApp created please?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How do I build ths Form Adaptor?

Post by odklizec » Mon Sep 28, 2015 8:09 am

Hi,

This MyApp folder represents the topmost folder of an app, dialog or context menu you add to repository. Other type of folders are Rooted and Simple folder. These are typically created manually during reorganizing repository.

Please check this part of user guide about repository folders...
http://www.ranorex.com/support/user-gui ... html#c3120
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

stapes
Posts: 206
Joined: Wed Sep 16, 2015 10:55 am

Re: How do I build ths Form Adaptor?

Post by stapes » Mon Sep 28, 2015 10:55 am

Thank you. I renamed my Application Folder in the Repository to AgileMobileApp.

Then I tried to use the Code Sample "Using Repository in Code", and get compile errors:

Ranorex.MobileApp Contains no methods for Activate, Active, Maximize, Minimize, restore, Close, Buttons, GenderOption, CategoryList.


also The type or namespace name 'ranorex' could not be found (are you missing a using directive or an assembly reference?) (CS0246) - C:\Users\stephen.staple\Documents\Ranorex\RanorexStudio Projects\AgileMobileApp\AgileMobileApp\UsingRepository.cs:85,11

Do you think you could only put code samples in your manual that are complete and compile and work?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How do I build ths Form Adaptor?

Post by odklizec » Mon Sep 28, 2015 11:20 am

Hi,

It seems to me that you are trying to use entire sample, but it's just a sample! Some methods used in this sample are just examples, not always available methods.

To find out what methods are available in your app, you should use Code Completion feature. Basically, once you start typing, after each entered dot you should get the list of available methods, properties or variables.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration