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 -
Method Summary
Modifier and TypeMethodDescriptiondefault Theadless()Set emulator/simulator to start in headless mode (e.g.Get whether the emulator/simulator starts in headless mode.default TsetIsHeadless(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, setCapabilityMethods inherited from interface org.openqa.selenium.Capabilities
asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
-
Field Details
-
IS_HEADLESS_OPTION
- See Also:
-
-
Method Details
-
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
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
Get whether the emulator/simulator starts in headless mode.- Returns:
- True or false.
-