fbpx

Method GetAverageColorName

Gets the name of the average color of the object. An average color is calculated by summing color values of all pixels of the object and dividing by the number of pixels

Usage

Function GetAverageColorName(
  Boolean Report [Optional]
)

Parameters

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

Average color String

Example

VBScript

color = Application("Demo").View("DemoView").Object("DemoObject").GetAverageColorName()
'result example: SlateGray

JavaScript

var color = Application("Demo").View("DemoView").Object("DemoObject").GetAverageColorName();
// result example: SlateGray

Documentation Categories

benefits UI testing and rpa

ZAPTEST

Manual testing tools, vs. automation, checklists and more

FARM

LOAD