@Deprecated public final class Configurator extends Object
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.Modifier and Type | Method and Description |
---|---|
long |
getActionAcknowledgmentTimeout()
Deprecated.
Gets the current timeout for waiting for an acknowledgment of generic
uiautomator actions, such as clicks, text setting, and menu presses.
|
static Configurator |
getInstance()
Deprecated.
Retrieves a singleton instance of Configurator.
|
long |
getKeyInjectionDelay()
Deprecated.
Gets the current delay between key presses when injecting text input.
|
long |
getScrollAcknowledgmentTimeout()
Deprecated.
Gets the timeout for waiting for an acknowledgement of an
uiautomtor scroll swipe action.
|
long |
getWaitForIdleTimeout()
Deprecated.
Gets the current timeout used for waiting for the user interface to go
into an idle state.
|
long |
getWaitForSelectorTimeout()
Deprecated.
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.
|
Configurator |
setActionAcknowledgmentTimeout(long timeout)
Deprecated.
Sets the timeout for waiting for an acknowledgment of generic uiautomator
actions, such as clicks, text setting, and menu presses.
|
Configurator |
setKeyInjectionDelay(long delay)
Deprecated.
Sets a delay between key presses when injecting text input.
|
Configurator |
setScrollAcknowledgmentTimeout(long timeout)
Deprecated.
Sets the timeout for waiting for an acknowledgement of an
uiautomtor scroll swipe action.
|
Configurator |
setWaitForIdleTimeout(long timeout)
Deprecated.
Sets the timeout for waiting for the user interface to go into an idle
state before starting a uiautomator action.
|
Configurator |
setWaitForSelectorTimeout(long timeout)
Deprecated.
Sets the timeout for waiting for a widget to become visible in the user
interface so that it can be matched by a selector.
|
public static Configurator getInstance()
public Configurator setWaitForIdleTimeout(long timeout)
UiDevice
will perform
this wait before starting to search for the widget specified by the
object's UiSelector
. Once the idle state is detected or the
timeout elapses (whichever occurs first), the object will start to wait
for the selector to find a match.
See setWaitForSelectorTimeout(long)
timeout
- Timeout value in millisecondspublic long getWaitForIdleTimeout()
UiDevice
will perform
this wait before starting to search for the widget specified by the
object's UiSelector
. Once the idle state is detected or the
timeout elapses (whichever occurs first), the object will start to wait
for the selector to find a match.
See setWaitForSelectorTimeout(long)
public Configurator setWaitForSelectorTimeout(long timeout)
timeout
- Timeout value in milliseconds.public long getWaitForSelectorTimeout()
public Configurator setScrollAcknowledgmentTimeout(long timeout)
UiScrollable
timeout
- Timeout value in millisecondspublic long getScrollAcknowledgmentTimeout()
UiScrollable
public Configurator setActionAcknowledgmentTimeout(long timeout)
UiObject
timeout
- Timeout value in millisecondspublic long getActionAcknowledgmentTimeout()
UiObject
public Configurator setKeyInjectionDelay(long delay)
UiObject.setText(String)
delay
- Delay value in millisecondspublic long getKeyInjectionDelay()
UiObject.setText(String)