FoneMonkey

To get the property of an object during playback, use the CommandList.addGet function.  As an example:

commandList.addGet("UITextField", "OneField", "text", "changeVar");

- gets the "text" property for "UITextField" with the MonkeyID " OneField" and creates the variable "changeVar"

 

You can reference changeVar in the continuation function as a JavaScript variable:

// JavaScript

if (changeVar == "ExpectedText")

    // Do something

 

Or later during playback as a MonkeyID or an argument for the command using ${ } delimiters:

commandList.add("Return", "UITextField", "AnotherField", " ${changeVar}");