Interface SupportsUseNativeCachingStrategyOption<T extends BaseOptions<T>>

  • All Superinterfaces:
    CanSetCapability<T>, org.openqa.selenium.Capabilities, java.io.Serializable
    All Known Implementing Classes:
    XCUITestOptions

    public interface SupportsUseNativeCachingStrategyOption<T extends BaseOptions<T>>
    extends org.openqa.selenium.Capabilities, CanSetCapability<T>
    • Field Detail

      • USE_NATIVE_CACHING_STRATEGY_OPTION

        static final java.lang.String USE_NATIVE_CACHING_STRATEGY_OPTION
        See Also:
        Constant Field Values
    • Method Detail

      • 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 java.util.Optional<java.lang.Boolean> doesUseNativeCachingStrategy()
        Get whether to use the native caching strategy.
        Returns:
        True or false.