Method GetColumns

Gets Table Column Count

Usage

Function GetColumns( 
        Boolean UseScrolling [Optional],
        Boolean Report [Optional]
)

Step

ZAP Object step

GetColumns

true

true

columnCount

Boolean UseScrolling [Optional]

Boolean Report [Optional]

Parameters

UseScrolling (optional)

Type: Boolean

Default Value: True

Scroll page during dynamic table recognition

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

Column count or -1 in case of recognition problem

Example

VBScript

msgbox Application("Demo").View("DemoView").Object("DemoTable").GetColumns(true, true)

JavaScript

alert(Application("Demo").View("DemoView").Object("DemoTable").GetColumns(true, true));

Comment

Get column count and save it to local variable

Script-Less next step

Step

ZAP Object step

GetColumns

true

true

columnCount