LabelWithCheckbox
Last updated
Was this helpful?
Last updated
Was this helpful?
Class for checkboxes that are associated with a static label. Offers same interactions as .
Namespace: Progile.TRIO.BaseModel Assembly: Progile.TRIO.BaseModel (in Progile.TRIO.BaseModel.dll)
Progile.TRIO.BaseModel.LabelWithCheckbox
Initializes a new instance of the LabelWithCheckbox class.
Syntax:
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.
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
Syntax:
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.
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
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.
Name
Description
Type:
Type: The name of the checkbox that will be used for logging and reporting of exceptions (customer facing).
Type: The position of the checkbox relative to the label.
Type: The image reference that will be used to locate the label on the screen.
Type:
Type:
Type: The minimum width that contains both the label and the checkbox, typically the width of the UI grid column. (Note: ensure the width fits with all window sizes that need to be supported)
Type:
Type: []
Type:
Type: The name of the checkbox that will be used for logging and reporting of exceptions (customer facing).
Type: The position of the checkbox relative to the label.
Type: The search text that will be used to locate the label on the screen.
Type:
Type:
Type: The minimum width that contains both the label and the checkbox, typically the width of the UI grid column. (Note: ensure the width fits with all window sizes that need to be supported)
Type:
Type: []
Gets the object of the LabelWithCheckbox.