Checkbox Methods

Check

Checks the checkbox if it is not already in the correct state. Else it logs that nothing was done.

Syntax:

public void Check()

Exceptions:

Exception

Condition

When the Checkbox could not be found on the screen.

When the Check could not be verified successfully after the configured amount of retries of clicking on the checkbox.

IsChecked

Returns true if the checked representation can be found, false if unchecked representation can be found and throws an exception if neither one or the other can be found.

Syntax:

public bool IsChecked()

Return Value:

True, if the checked representation of the checkbox is found. False, if the unchecked representation is found.

Exceptions:

Exception

Condition

When the Checkbox could not be found on the screen.

The found representation was not named checked or unchecked.

IsUnchecked

Returns true if the unchecked representation can be found, false if checked representation can be found and throws an exception if neither one or the other can be found.

Syntax:

public bool IsUnchecked()

Return Value:

True, if the unchecked representation of the checkbox is found. False, if the checked representation is found.

Exceptions:

Exception

Condition

When the Checkbox could not be found on the screen.

The found representation was not named checked or unchecked.

Uncheck

Unchecks the checkbox if it is not already in the correct state. Else it logs that nothing was done.

Syntax:

public void Uncheck()

Exceptions:

Exception

Condition

When the Checkbox could not be found on the screen.

When the Uncheck could not be verified successfully after the configured amount of retries of clicking on the checkbox.

Last updated