Allows you to set key parameters for running uiautomator tests. The new
settings take effect immediately and can be changed any time during a test run.
To modify parameters using Configurator
, first
obtain an instance by calling getInstance()
.
As a best practice, make sure you always save the original value of any
parameter that you are modifying. After running your tests with the modified
parameters, make sure to also restore the original parameter values, otherwise
this will impact other tests cases.
Summary
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the current timeout for waiting for an acknowledgment of generic
uiautomator actions, such as clicks, text setting, and menu presses.
| |||||||||||
Retrieves a singleton instance of Configurator.
| |||||||||||
Gets the current delay between key presses when injecting text input.
| |||||||||||
Gets the timeout for waiting for an acknowledgement of an
uiautomtor scroll swipe action.
| |||||||||||
Gets the current timeout used for waiting for the user interface to go
into an idle state.
| |||||||||||
Gets the current timeout for waiting for a widget to become visible in
the user interface so that it can be matched by a selector.
| |||||||||||
Sets the timeout for waiting for an acknowledgment of generic uiautomator
actions, such as clicks, text setting, and menu presses.
| |||||||||||
Sets a delay between key presses when injecting text input.
| |||||||||||
Sets the timeout for waiting for an acknowledgement of an
uiautomtor scroll swipe action.
| |||||||||||
Sets the timeout for waiting for the user interface to go into an idle
state before starting a uiautomator action.
| |||||||||||
Sets the timeout for waiting for a widget to become visible in the user
interface so that it can be matched by a selector.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|