Using Cross-Platform Methods in Your Scripts

In scripts, you can use your cross-platform method names. The window declarations map the cross-platform method names you use in your scripts to the actual methods required to carry out the actions you want on each of the GUIs.

Continuing the example from Creating a Class that Maps to Several Silk Test Classic Classes, you use the Select method in your code to select the control named Direction.

testcase SearchBackward ()

   Item = "Up"
   Find.Invoke ()
   Find.Direction.Select (Item)
   Find.Dismiss ()
Note: The script does not indicate that anything unusual is happening. All of the steps necessary to make the Select method work properly, regardless of the class of the object, are encapsulated in the class and window declarations.