Interface SupportsRecreateChromeDriverSessionsOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.Serializable
- All Known Implementing Classes:
EspressoOptions
,UiAutomator2Options
public interface SupportsRecreateChromeDriverSessionsOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
RECREATE_CHROME_DRIVER_SESSIONS
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Optional<java.lang.Boolean>
doesRecreateChromeDriverSessions()
Get whether chromedriver sessions should be killed and then recreated instead of just suspending it on context switch.default T
recreateChromeDriverSessions()
Enforce chromedriver sessions to be killed and then recreated instead of just suspending it on context switch.default T
setRecreateChromeDriverSessions(boolean value)
If this capability is set to true then chromedriver session is always going to be killed and then recreated instead of just suspending it on context switching.-
Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
Field Detail
-
RECREATE_CHROME_DRIVER_SESSIONS
static final java.lang.String RECREATE_CHROME_DRIVER_SESSIONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
recreateChromeDriverSessions
default T recreateChromeDriverSessions()
Enforce chromedriver sessions to be killed and then recreated instead of just suspending it on context switch.- Returns:
- self instance for chaining.
-
setRecreateChromeDriverSessions
default T setRecreateChromeDriverSessions(boolean value)
If this capability is set to true then chromedriver session is always going to be killed and then recreated instead of just suspending it on context switching. false by default.- Parameters:
value
- Whether to recreate chromedriver sessions.- Returns:
- self instance for chaining.
-
doesRecreateChromeDriverSessions
default java.util.Optional<java.lang.Boolean> doesRecreateChromeDriverSessions()
Get whether chromedriver sessions should be killed and then recreated instead of just suspending it on context switch.- Returns:
- True or false.
-
-