LabelWithElementBase
Abstract class to combine a label with an other element based on the relative position. Needs to be generically implemented for every element. See LabelWithCheckbox as an example.
Namespace: Progile.TRIO.BaseModel
Assembly: Progile.TRIO.BaseModel (in Progile.TRIO.BaseModel.dll)
public LabelWithElementBase(
ITester tester,
string displayName,
RelativePosition elementPosition,
ImageReference imageReferenceForLabel,
int gridWidth,
int lineHeight,
params IImageFilter[] filters
)
Parameter | Description |
tester | The tester interface. |
displayName | Type: String
The name of the element that will be used for logging and reporting of exceptions (customer facing). |
elementPosition | |
imageReferenceForLabel | Type: ImageReference
The reference to the image that will be used to locate the element on the screen. |
gridWidth | Type: Int32
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) |
lineHeight | The minimum Height of the line with the element. |
filters | The filters to find the label. |
Exception | Condition |
ArgumentException | lineHeight needs to be set if elementPosition is Above or Under gridWidth needs to be set if elementPosition is Left or Right |
public LabelWithElementBase(
ITester tester,
string displayName,
RelativePosition elementPosition,
string searchText,
int gridWidth,
int lineHeight,
params IImageFilter[] filters
)
Parameter | Description |
tester | The tester interface. |
displayName | Type: String
The name of the element that will be used for logging and reporting of exceptions (customer facing). |
elementPosition | |
searchTextForLabel | |
gridWidth | Type: Int32
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) |
lineHeight | The minimum Height of the line with the element. |
filters | The filters to find the label. |
Exception | Condition |
ArgumentException | lineHeight needs to be set if elementPosition is Above or Under gridWidth needs to be set if elementPosition is Left or Right |
Name | Description |
The margin that is added to the boundary of the searchresult for the label to define the SearchRectForElement. |
Last modified 2yr ago