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
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default Optional<Boolean>
    Get whether to use the native caching strategy.
    default T
    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, setCapability

    Methods inherited from interface org.openqa.selenium.Capabilities

    asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
  • Field Details

  • Method Details

    • setUseNativeCachingStrategy

      default T setUseNativeCachingStrategy(boolean value)
      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

      default Optional<Boolean> doesUseNativeCachingStrategy()
      Get whether to use the native caching strategy.
      Returns:
      True or false.