Interface SupportsUseNativeCachingStrategyOption<T extends BaseOptions<T>>
- All Superinterfaces:
CanSetCapability<T>,org.openqa.selenium.Capabilities,Serializable
- All Known Implementing Classes:
XCUITestOptions
public interface SupportsUseNativeCachingStrategyOption<T extends BaseOptions<T>>
extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGet whether to use the native caching strategy.default TsetUseNativeCachingStrategy(boolean value) Set this capability to false in order to use the custom elements caching strategy.Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapabilityMethods inherited from interface org.openqa.selenium.Capabilities
asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
-
Field Details
-
USE_NATIVE_CACHING_STRATEGY_OPTION
- See Also:
-
-
Method Details
-
setUseNativeCachingStrategy
Set this capability to false in order to use the custom elements caching strategy. This might help to avoid stale element exception on property change. By default, the native XCTest cache resolution is used (true) for all native locators (e.g. all, but xpath).- Parameters:
value- Whether to use the native caching strategy.- Returns:
- self instance for chaining.
-
doesUseNativeCachingStrategy
Get whether to use the native caching strategy.- Returns:
- True or false.
-