What is the difference between a property and a method?
A method can be called on an object.
If the action you are automating is:
- closely related to a specific window, create a method of that specific window.
- closely related to a class of objects, create a method of that window class.
For example, the Click() method performs the action of clicking on a specific object:
A property is used to get specific information from an object.
Each 4Test class has properties, which are characteristics of that class. The properties are listed with the description of each class in the online Help.
For example, if you wish to get the Font Size of a particular object:
INTEGER iSize iSize = GMO.WelcomeText.GetProperty("$FontSize") Print (iSize)