Method msgbox / alert

Displays a dialogue box message. Use ZAP.Common.ShowMessageBox method for Script-Less approach

Usage

VBScript

Function msgbox( 
	String Text
)

ZAP Utility

ZAP Utility step

ZAP.Comm...Box

text

String Text

Parameters

Text

Type: String

Dialogue message text

Returns

No return value

Example

VBScript

msgbox Application("Demo").View("DemoView").Object("DemoObject").GetText

JavaScript

alert(Application("Demo").View("DemoView").Object("DemoObject").GetText());

Comment

Get text property from object and show message box with result

Script-Less next step

Variable

text

ZAP Object step

GetProperty

Text

Script-Less next step

ZAP Utility

ZAP Utility step

Zap.Comm...Box

Zap.Variable("text")