object, change, modify, update, set, scriptless, script-less, scripted, step, view, stepview

Method SetProperty

Sets new value to the object property

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function SetProperty( 
    String Name,
    String Value,
    Boolean TakeScreenshot [Optional]
)

Step

ZAP Object step

SetProperty

Text

Hello!

false

Name

Value

Boolean TakeScreenshot

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

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

Script-Less next step

Step

ZAP Object step

SetProperty

Text

Hello!

Script-Less next step

Comment

Take application screenshot

Script-Less next step

Step

ZAP Object step

SetProperty

Text

Hello!

true

Contact Us

1425 Market Blvd Suite 530-230

Roswell, GA 30076, USA

(800) 795-3552