LabelWithCheckbox
Description
Class for checkboxes that are associated with a static label. Offers same interactions as Checkbox.
LabelWithCheckbox 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.LabelWithCheckbox
Constructors
Initializes a new instance of the LabelWithCheckbox class.
LabelWithCheckbox(ITester, string, RelativePosition, ImageReference, ImageReference, ImageReference, int, int, IImageFilter[ ])
Syntax:
Parameters:
Parameter
Description
tester
The tester interface.
displayName
checkboxPosition
imageReferenceForLabel
checkedImageReference
The image reference for the checked representation. This or the uncheckedImgRef will be used to locate the checkbox.
uncheckedImageReference
The image reference for the unchecked representation. This or the checkedImgRef will be used to locate the checkbox.
[gridWidth]
The gridWith needs to be set for checkboxPosition Left
or Right
[checkboxLineHeight]
The minimum Height of the line with the checkbox.
The lineHeight needs to be set for checkboxPosition Above
or Under
[filters]
The filters to find the label.
Exceptions:
Exception
Condition
ArgumentException
checkboxLineHeight needs to be set if checkboxPosition is Above or Under; gridWidth needs to be set if checkboxPosition is Left or Right
LabelWithCheckbox(ITester, string, RelativePosition, string, ImageReference, ImageReference, int, int, IImageFilter[ ])
Syntax:
Parameters:
Parameter
Description
tester
The tester interface.
displayName
checkboxPosition
searchTextForLabel
checkedImageReference
The image reference for the checked representation. This or the uncheckedImgRef will be used to locate the checkbox.
uncheckedImageReference
The image reference for the unchecked representation. This or the checkedImgRef will be used to locate the checkbox.
[gridWidth]
The gridWith needs to be set for checkboxPosition Left
or Right
[checkboxLineHeight]
The minimum Height of the line with the checkbox.
The lineHeight needs to be set for checkboxPosition Above
or Under
[filters]
The filters to find the label.
Exceptions:
Exception
Condition
ArgumentException
checkboxLineHeight needs to be set if checkboxPosition is Above or Under; gridWidth needs to be set if checkboxPosition is Left or Right
Methods
Name
Description
Checks the checkbox if it is not already in the correct state. Else it logs that nothing was done.
Returns true if the image checked can be found, false if unchecked can be found and throws an exception if neither one or the other can be found.
Unchecks the checkbox if it is not already in the correct state. Else it logs that nothing was done.
Properties
Name
Description
Last updated