You can create specific automation support for the custom control. This additional automation support provides recording support and more powerful play-back support. To create automation support, the test application must be modified and the Open Agent must be extended.
After the test application has been modified and includes automation support, perform the following steps:
_desktop.TestObject("//FlexSpinner[@caption='index:1']").Invoke("Increment", 3)The following example shows how to set the value of the spinner to 3.
_desktop.TestObject("//FlexSpinner[@caption='index:1']").SetProperty("Value", 3)