Button Methods
Last updated
Last updated
Clicks on the button. Verifies the click was successful with the specified verification and performs retries if necessary.
Syntax:
Clicks on the button and uses an update check in the provided filters as verification. Should only be used if no other verify method is applicable. If after the click no update is detected in the region defined by filters, retries are performed. Note: filters should be chosen so that hover / click effects of the button itself don't trigger the update.
Syntax:
Performs a double click on the button. Wait time between the individual clicks is controlled by the optional parameter doubleClickDelay.
See also: TesterMouseExtensions.DoubleClick
Syntax:
Moves the mouse over the button. Verifies the hover was successful with the specified verification and performs retries if necessary.
Checks the state of the button. Returns true if the button is active, false if the button is inactive. Requires that images named "active" and "inactive" are present in the folder given as content.
True, if the active representation of the button is found; false, if the inactive representation is found.
Waits for the active status. Returns false if the status is not reached after OnScreenElement.WaitTimeInSeconds.
True, if the active state was reached after OnScreenElement.WaitTimeInSeconds, false otherwise.
Waits for the active status. Returns false if the status is not reached after the given waitTime.
True, if the active state was reached after waitTime, false otherwise.
Waits for the inactive status. Returns false if the status is not reached after OnScreenElement.WaitTimeInSeconds.
True, if the inactive state was reached after OnScreenElement.WaitTimeInSeconds, false otherwise.
Waits for the inactive status. Returns false if the status is not reached after waitTime.
True, if the inactive state was reached after waitTime, false otherwise.
Parameter
Description
verification
Exception
Condition
When the button could not be found on the screen.
When the Click could not be verified successfully after the configured amount of retries of the click.
Parameter
Description
tolerance
Type: ImgDiffTolerance How different a new image needs to be so that we will count it as an update.
timeoutInSec
Type: Double The time during which the screen is monitored for updates after the action, if not set OnScreenElement.DefaultWaitTime is used.
filters
Type: IImageFilter[] Generally a Select filter indicating the area of interest.
Exception
Condition
When the button could not be found on the screen.
When the Click could not be verified successfully after the configured amount of retries of the click.
Parameter
Description
verification
[doubleClickDelay]
Type: Int32 The time to wait between the clicks.
Exception
Condition
When the button could not be found on the screen.
When the DoubleClick could not be verified successfully after the configured amount of retries of the click.
Parameter
Description
verification
Exception
Condition
When the button could not be found on the screen.
When the Hover could not be verified successfully after the configured amount of retries.
Exception
Condition
When the button could not be found on the screen.
The found representation was not named "active" or "inactive"
Name
Description
Waits for the active status. Returns false if the status is not reached after OnScreenElement.WaitTimeInSeconds.
Waits for the active status. Returns false if the status is not reached after the given waitTime
Exception
Condition
When the button could not be found on the screen.
The found representation was not named "active" or "inactive"
Parameter
Description
waitTime
Type: TimeSpan How long to wait until the Button should be active. Default value is OnScreenElement.WaitTimeInSeconds
Exception
Condition
When the button could not be found on the screen.
The found representation was not named "active" or "inactive"
Name
Description
Waits for the inactive status. Returns false if the status is not reached after OnScreenElement.WaitTimeInSeconds.
Waits for the inactive status. Returns false if the status is not reached after waitTime
Exception
Condition
When the button could not be found on the screen.
The found representation was not named "active" or "inactive"
Parameter
Description
waitTime
Type: TimeSpan How long to wait until the Button should be inactive. Default value is OnScreenElement.WaitTimeInSeconds
Exception
Condition
When the button could not be found on the screen.
The found representation was not named "active" or "inactive"