Dropdown Methods

OpenDropdownList

Opens the dropdownList and returns a rectangle for the list (based on rectangle with changes after expanding dropdown list)

Syntax:

public virtual void OpenDropdownList()

Exceptions:

SelectImage

Opens the dropdown list, searches the imageReference in the list (incl. scrolling) and selects it. If the image cannot be found, throws a TestStepAbortedException.

The dropdown list is an ItemList<Row> with an IScroller given by the AppBasics.GetScroller passed to the constructor of the dropdown.

Syntax:

public virtual void SelectImage(
	ImageReference imageReference
)

Parameters:

Exceptions:

SelectOnScreenElement

Opens the dropdown list, searches for the element in the list (incl. scrolling) and selects it. If the image cannot be found, throws a TestStepAbortedException.

The dropdown list is an ItemList<Row> with an IScroller given by the AppBasics.GetScroller passed to the constructor of the dropdown.

Syntax:

public virtual void SelectOnScreenElement(
        OnScreenElement element
)

Parameters:

Exceptions:

SelectValue

Opens the dropdown list, searches the text value in the list (incl. scrolling) and selects it. If the text cannot be found, throws a TestStepAbortedException.

The dropdownlist is an ItemList<Row> with an IScroller given by the AppBasics.GetScroller passed to the constructor of the dropdown.

Syntax:

public virtual void SelectValue(
	string value
)

Parameters:

Exceptions:

VerifySelectedValue

Verifies if the value that is currently set in the TextBox matches the expected value. If it doesn't, the value read from the TextBox is returned as the actualValue out parameter.

Syntax:

public virtual bool VerifySelectedValue(
	string value,
	out string actualValue
)

Parameters:

Return Value:

Whether or not the text value could be found in the dropdown textbox.

Exceptions:

VerifyValueInList

Opens the dropdown list and verifies if the provided value is present in the dropdown list (includes scrolling). Closes the dropdown list again.

The dropdown list is an ItemList<Row> with an IScroller given by the AppBasics.GetScroller passed to the constructor of the dropdown.

Syntax:

public virtual bool VerifyValueInList(
	string value,
	bool takeScreenshot = true
)

Parameters:

Return Value:

Whether or not the text value could be found in the dropdown textbox.

Exceptions:

Last updated