Interface SupportsIsHeadlessOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.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 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 io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
Field Detail
-
IS_HEADLESS_OPTION
static final java.lang.String IS_HEADLESS_OPTION
- See Also:
- Constant Field Values
-
-
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.
-
-