public interface HasAndroidSettings extends HasSettings
Modifier and Type | Method and Description |
---|---|
default HasAndroidSettings |
allowInvisibleElements(boolean enabled)
Set whether the source output/xpath search should consider all elements, visible and invisible.
|
default HasAndroidSettings |
configuratorSetActionAcknowledgmentTimeout(java.time.Duration timeout)
invoke
setActionAcknowledgmentTimeout in com.android.uiautomator.core.Configurator . |
default HasAndroidSettings |
configuratorSetKeyInjectionDelay(java.time.Duration delay)
invoke
configuratorSetKeyInjectionDelay in com.android.uiautomator.core.Configurator . |
default HasAndroidSettings |
configuratorSetScrollAcknowledgmentTimeout(java.time.Duration timeout)
invoke
setScrollAcknowledgmentTimeout in com.android.uiautomator.core.Configurator . |
default HasAndroidSettings |
configuratorSetWaitForIdleTimeout(java.time.Duration timeout)
invoke
setWaitForIdleTimeout in com.android.uiautomator.core.Configurator . |
default HasAndroidSettings |
configuratorSetWaitForSelectorTimeout(java.time.Duration timeout)
invoke
setWaitForSelectorTimeout in com.android.uiautomator.core.Configurator . |
default HasAndroidSettings |
enableNotificationListener(boolean enabled)
Whether to enable or disable the notification listener.
|
default HasAndroidSettings |
ignoreUnimportantViews(java.lang.Boolean compress)
Set the `ignoreUnimportantViews` setting.
|
default HasAndroidSettings |
normalizeTagNames(boolean enabled)
Setting this value to true will enforce source tree dumper
to transliterate all class names used as XML tags to the limited
set of ASCII characters supported by Apache Harmony
lib and used by default in Android to avoid possible
XML parsing exceptions caused by XPath lookup.
|
default HasAndroidSettings |
setElementResponseAttributes(java.lang.String attrNames)
Which attributes should be returned if compact responses are disabled.
|
default HasAndroidSettings |
setShouldUseCompactResponses(boolean enabled)
Whether to return compact (standards-compliant) and faster responses in find element/s
(the default setting).
|
default HasAndroidSettings |
setTrackScrollEvents(boolean enabled)
Turn on or off the tracking of scroll events as they happen.
|
default HasAndroidSettings |
shutdownOnPowerDisconnect(boolean enabled)
Whether to enable or disable shutdown the server through
the broadcast receiver on ACTION_POWER_DISCONNECTED.
|
getSettings, setSetting, setSetting, setSettings, setSettings
execute, execute
default HasAndroidSettings ignoreUnimportantViews(java.lang.Boolean compress)
compress
- ignores unimportant views if true, doesn't ignore otherwise.default HasAndroidSettings configuratorSetWaitForIdleTimeout(java.time.Duration timeout)
setWaitForIdleTimeout
in com.android.uiautomator.core.Configurator
.timeout
- A negative value would reset to its default value. Minimum time unit
resolution is one milliseconddefault HasAndroidSettings configuratorSetWaitForSelectorTimeout(java.time.Duration timeout)
setWaitForSelectorTimeout
in com.android.uiautomator.core.Configurator
.timeout
- A negative value would reset to its default value. Minimum time unit
resolution is one milliseconddefault HasAndroidSettings configuratorSetScrollAcknowledgmentTimeout(java.time.Duration timeout)
setScrollAcknowledgmentTimeout
in com.android.uiautomator.core.Configurator
.timeout
- A negative value would reset to its default value. Minimum time unit
resolution is one milliseconddefault HasAndroidSettings configuratorSetKeyInjectionDelay(java.time.Duration delay)
configuratorSetKeyInjectionDelay
in com.android.uiautomator.core.Configurator
.delay
- A negative value would reset to its default value. Minimum time unit
resolution is one milliseconddefault HasAndroidSettings configuratorSetActionAcknowledgmentTimeout(java.time.Duration timeout)
setActionAcknowledgmentTimeout
in com.android.uiautomator.core.Configurator
.timeout
- A negative value would reset to its default value. Minimum time unit
resolution is one milliseconddefault HasAndroidSettings normalizeTagNames(boolean enabled)
enabled
- Either true or false. The default value if false.default HasAndroidSettings setShouldUseCompactResponses(boolean enabled)
enabled
- Either true or false. The default value if true.default HasAndroidSettings setElementResponseAttributes(java.lang.String attrNames)
attrNames
- The comma-separated list of fields to return with each element.default HasAndroidSettings allowInvisibleElements(boolean enabled)
enabled
- Either true or false. The default value if false.default HasAndroidSettings enableNotificationListener(boolean enabled)
enabled
- Either true or false. The default value if true.default HasAndroidSettings shutdownOnPowerDisconnect(boolean enabled)
enabled
- Either true or false. The default value if true.default HasAndroidSettings setTrackScrollEvents(boolean enabled)
true
, a field lastScrollData
is added to the results of
getSession
, which can then be used to check on scroll progress.
Turning this feature off significantly increases touch action performance.enabled
- Either true or false. The default value if true.