Interface SupportsIsHeadlessOption<T extends BaseOptions<T>>

    • Field Summary

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

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default T headless()
      Set emulator/simulator to start in headless mode (e.g.
      default java.util.Optional<java.lang.Boolean> isHeadless()
      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 org.openqa.selenium.Capabilities

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

    • Method Detail

      • 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 java.util.Optional<java.lang.Boolean> isHeadless()
        Get whether the emulator/simulator starts in headless mode.
        Returns:
        True or false.