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

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

Step

SetProperty

Text

Hello!

Comment

Take application screenshot

Step

SetProperty

Text

Hello!

true

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227