Method SetProperty
Sets new value to the object propertyUsage
Function SetProperty(
String Name,
String Value,
Boolean TakeScreenshot [Optional],
Boolean Report [Optional]
)
Parameters
Name
Type: String
The name of the property (i.e. "Text")
Value
Type: String
The new value to set
TakeScreenshot (optional)
Type: Boolean
Default value: False
Takes Screenshot of the Application if true
Report (optional)
Type: Boolean
Default value: True
Generate report for this step
Returns
No return value
Example
VBScript
Application("Demo").View("DemoView").Object("DemoObject").SetProperty "Text", "Welcome to www.zaptest.com"
'Take application screenshot
Application("Demo").View("DemoView").Object("DemoObject").SetProperty "Text", "Welcome to www.zaptest.com", true
JavaScript
Application("Demo").View("DemoView").Object("DemoObject").SetProperty("text", "Welcome to www.zaptest.com");
// Take application screenshot
Application("Demo").View("DemoView").Object("DemoObject").SetProperty("text", "Welcome to www.zaptest.com", true);
Comment
Set Text property