Interface SupportsForceAppLaunchOption<T extends BaseOptions<T>>

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

public interface SupportsForceAppLaunchOption<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 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 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

    • 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 Optional<Boolean> doesForceAppLaunch()
      Get whether to enforce app restart on session startup.
      Returns:
      True or false.