LabelWithValue
Description
Class for dynamic values that are shown with a static label. Allows to verify the value with OCR.
LabelWithValue Class
Namespace: Progile.TRIO.BaseModel Assembly: Progile.TRIO.BaseModel (in Progile.TRIO.BaseModel.dll)
Inheritance Hierarchy:
Object Progile.TRIO.BaseModel.OnScreenElement Progile.TRIO.BaseModel.LabelWithElementBase Progile.TRIO.BaseModel.LabelWithValue
Constructors
Initializes a new instance of the LabelWithValue class. If the value is right or left of the label (valuePosition), the gridWidth needs to be set, if it's above or under, the height of the line with the value valueLineHeight needs to be set.
LabelWithCheckbox(ITester, string, RelativePosition, ImageReference, int, int, IImageFilter[ ])
Syntax:
Parameters:
Parameter
Description
tester
The tester interface.
displayName
valuePosition
imageReferenceForLabel
[gridWidth]
The gridWith needs to be set for valuePosition Left
or Right
[valueLineHeight]
The minimum Height of the line with the value.
The lineHeight needs to be set for valuePosition Above
or Under
[filters]
The filters to find the label.
Exceptions:
Exception
Condition
ArgumentException
valueLineHeight needs to be set if valuePosition is Above or Under; gridWidth needs to be set if valuePosition is Left or Right
LabelWithCheckbox(ITester, string, RelativePosition, string, int, int, IImageFilter[ ])
Syntax:
Parameters:
Parameter
Description
tester
The tester interface.
displayName
valuePosition
searchTextForLabel
[gridWidth]
The gridWith needs to be set for valuePosition Left
or Right
[valueLineHeight]
The minimum Height of the line with the value.
The lineHeight needs to be set for valuePosition Above
or Under
[filters]
The filters to find the label.
Exceptions:
Exception
Condition
ArgumentException
valueLineHeight needs to be set if valuePosition is Above or Under; gridWidth needs to be set if valuePosition is Left or Right
Methods
Name
Description
Reads the value in the specified searchRectangle using OCR.
Verifies the dynamic value with OCR, using a rectangle that is determined by the relative position to the static label.
Waits for the specified value for the time given in waitTime, if waitTime is not set or default, WaitTimeInSeconds is used.
Properties
Name
Description
The ocr parameters that are used to verify the value.
Last updated