Interface SupportsReduceMotionOption<T extends BaseOptions<T>>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String REDUCE_MOTION_OPTION  
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Optional<java.lang.Boolean> doesReduceMotion()
      Get whether to reduce motion accessibility preference.
      default T reduceMotion()
      Enforce reduce motion accessibility preference.
      default T setReduceMotion​(boolean value)
      It allows to turn on/off reduce motion accessibility preference.
      • Methods inherited from interface org.openqa.selenium.Capabilities

        asMap, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatform, getPlatformName, getVersion, is, merge
    • Field Detail

      • REDUCE_MOTION_OPTION

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

      • reduceMotion

        default T reduceMotion()
        Enforce reduce motion accessibility preference.
        Returns:
        self instance for chaining.
      • setReduceMotion

        default T setReduceMotion​(boolean value)
        It allows to turn on/off reduce motion accessibility preference. Setting reduceMotion on helps to reduce flakiness during tests. Only on simulators.
        Parameters:
        value - Whether to turn on/off reduce motion accessibility preference.
        Returns:
        self instance for chaining.
      • doesReduceMotion

        default java.util.Optional<java.lang.Boolean> doesReduceMotion()
        Get whether to reduce motion accessibility preference.
        Returns:
        True or false.