Enumerations

DataSourceType

Indicates in TextBox.Source whether the Text property containing the content of a TextBox as it is known to the model was read from the SCREEN, SET by the model itself (e.g. by TextBox.Enter) or is UNKNOWN.

Member name

Description

Unknown

Default value, the content of the TextBox is unknown and Text probably null

Screen

The value in Text was read or copied from the screen, e.g. with the TextBox.GetText method.

Set

The value in Text was set by the model itself, e.g. with the TextBox.Enter method.

ImgDiffTolerance

Different tolerance levels for the screen update checks (e.g. WaitUntilStableScreen, WaitUntilScreenUpdate). The related integer value corresponds to the amount pixels that are completely inverted (e.g. from black to white, or from yellow to blue) from one image to the next. Recommended value: Low

Member name

Description

Exact = 0

Even a single pixel slightley changing its color will be considered as an update or a not stable screen.

Low = 50

Recommended value for most situations. A blinking cursor would still be ignored but e.g. a dropdown animation would be considered an update.

Medium = 500

Only larger updates such as opening a dialog are considered. Could be used when e.g. a loading animation or small progress bar should be ignored.

Large = 5000

Use this to detect large changes affecting a substantial part of the screen, but ignoring animations or local changes.

RelativePosition

The position of the element relative to the label. Used in LabelWithElementBase.

Member name

Description

Right

The element is to the right of the label.

Under

The element is under the label, e.g. on the next line.

Left

The element is to the left of the label.

Above

The element is above the label, e.g. on the previous line.

ScrollerState

The different states an IScroller can be in.

Member name

Description

Unknown

Default value, we don't know if we even have a scroller.

Inactive

The scroller is inactive or not shown, typically the case when the scrollable content fits on the screen.

Active

The scroller is shown and active, the window can be scrolled. The position of the scroller is not known, could be at the top, bottom or anywhere between.

AtTop

The scroller is shown and active and the scrollbar is at the top. The beginning of the scrollable content is shown.

AtBottom

The scroller is shown and active and the scrollbar is at the bottom. The end of the scrollable content is shown.

AtLeftEnd

For horizontal Scroller: The scroller is shown and active and the scrollbar is at the left end. The end of the scrollable content is shown.

AtRightEnd

For horizontal Scroller: The scroller is shown and active and the scrollbar is at the right end. The beginning of the scrollable content is shown.

SearchType

Indicates whether the Content of an OnScreenElement shall be searched as image with FindImage or as text with FindText.

Member name

Description

Unknown

Default value. Will not allow to find the element with WaitFor.

Image

The OnScreenElement shall be searched as image with FindImage.

Text

The OnScreenElement shall be searched text with FindText.

TextBoxType

Indicates whether the text in a TextBox can be read from the screen by Clipboard interaction or with OCR.

Member name

Description

Clipboard

The content of the TextBox is read by selecting all, copying to the clipboard and reading the content of the clipboard on the SUT.

OCR

The content of the TextBox is read using the OCR algorithm.

Last updated