Interface SupportsIsHeadlessOption<T extends BaseOptions<T>>

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

public interface SupportsIsHeadlessOption<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 T
    Set emulator/simulator to start in headless mode (e.g.
    default Optional<Boolean>
    Get whether the emulator/simulator starts in headless mode.
    default T
    setIsHeadless(boolean value)
    If set to true then emulator/simulator starts in headless mode (e.g.

    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

    • headless

      default T headless()
      Set emulator/simulator to start in headless mode (e.g. no UI is shown). It is only applied if the emulator is not running before the test starts.
      Returns:
      self instance for chaining.
    • setIsHeadless

      default T setIsHeadless(boolean value)
      If set to true then emulator/simulator starts in headless mode (e.g. no UI is shown). It is only applied if the emulator is not running before the test starts. false by default.
      Parameters:
      value - Whether to enable or disable headless mode.
      Returns:
      self instance for chaining.
    • isHeadless

      default Optional<Boolean> isHeadless()
      Get whether the emulator/simulator starts in headless mode.
      Returns:
      True or false.