fbpx

Get your 6-month No-Cost Opt-Out offer for Unlimited software automation!

Method GetRuntimeWidth

Returns runtime Width property, method has internal Exist() call for position recalculation.

Usage

Function GetRuntimeWidth( 
        Long MsTimeOut [Optional],
        Boolean Report [Optional]
)

Parameters

MsTimeOut (optional)

Type: Long

Default Value: -1

Optional timeout value in milliseconds

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

Returns runtime Width, 0 if object is not found

Example

VBScript

width = Application("Demo").View("DemoView").Object("DemoObject").GetRuntimeWidth()
'set optional parameters
width = Application("Demo").View("DemoView").Object("DemoObject").GetRuntimeWidth(1500, True)

JavaScript

var width = Application("Demo").View("DemoView").Object("DemoObject").GetRuntimeWidth();
// set optional parameters
width = Application("Demo").View("DemoView").Object("DemoObject").GetRuntimeWidth(1500, true);

Documentation Categories

ZAPTEST

FARM

LOAD