Skip to content

ExecuteScript

Property Type Required Description
Script String True The javascript you want to execute. It is possible to return a value from this script which can be used later in the workflow if ResultVariableName is defined.
Arguments Argument Array False Use the Arguments property to pass data into the function executing the Script. Each argument can be accessed in script using the arguments[x] syntax. Only one Element type argument can be passed in per Script. The element used will be the result of a previous call to FindElementXXX.
ResultVariableName String False If defined the return value of the script will be stored in a dynamically created workflow parameter which can be used in subsequent actions. Objects will be stored as a serialized string. If the return value is a boolean true or false, it can be referred to in the ConditionGroup and NotConditionGroup properties to determine if a subsequent action will run.
IfFail Boolean False Valid values: Error, Ignore
ConditionGroup String False Value referring to the Name property in a matching rule (HtmlRule, SnapshotRule) or the ResultVariableName property in the ExecuteScript action. If specified, this action will only run if the referred to result is true
NotConditionGroup String False Value referring to the Name property in a matching rule (HtmlRule, SnapshotRule) or the ResultVariableName property in the ExecuteScript action. If specified, this action will only run if the referred to result is false

ExecuteScriptArgument

Property Type Required Description
ArgumentType Enumeration True Valid values: Element, SerializedValue
Value String False The serialized value if the ArgumentType is SerializedValue