Interface SupportsForceAppLaunchOption<T extends BaseOptions<T>>

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Optional<java.lang.Boolean> doesForceAppLaunch()
      Get whether to enforce app restart on session startup.
      default T setForceAppLaunch​(boolean value)
      Specify if the app should be forcefully restarted if it is already running on session startup.
      • Methods inherited from interface org.openqa.selenium.Capabilities

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

      • FORCE_APP_LAUNCH_OPTION

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

      • setForceAppLaunch

        default T setForceAppLaunch​(boolean value)
        Specify if the app should be forcefully restarted if it is already running on session startup. This capability only has an effect if an application identifier has been passed to the test session (either explicitly, by setting bundleId, or implicitly, by providing app). Default is true unless noReset capability is set to true.
        Parameters:
        value - Whether to enforce app restart on session startup.
        Returns:
        self instance for chaining.
      • doesForceAppLaunch

        default java.util.Optional<java.lang.Boolean> doesForceAppLaunch()
        Get whether to enforce app restart on session startup.
        Returns:
        True or false.