Package org.openqa.selenium.remote
Class AbstractDriverOptions<DO extends AbstractDriverOptions>
- java.lang.Object
-
- org.openqa.selenium.MutableCapabilities
-
- org.openqa.selenium.remote.AbstractDriverOptions<DO>
-
- All Implemented Interfaces:
java.io.Serializable
,Capabilities
- Direct Known Subclasses:
ChromiumOptions
,FirefoxOptions
,InternetExplorerOptions
,SafariOptions
public abstract class AbstractDriverOptions<DO extends AbstractDriverOptions> extends MutableCapabilities
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractDriverOptions()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
asMap()
java.lang.Object
getCapability(java.lang.String capabilityName)
java.util.Set<java.lang.String>
getCapabilityNames()
protected abstract java.lang.Object
getExtraCapability(java.lang.String capabilityName)
protected abstract java.util.Set<java.lang.String>
getExtraCapabilityNames()
DO
setAcceptInsecureCerts(boolean acceptInsecureCerts)
DO
setBrowserVersion(java.lang.String browserVersion)
DO
setImplicitWaitTimeout(java.time.Duration timeout)
DO
setPageLoadStrategy(PageLoadStrategy strategy)
DO
setPageLoadTimeout(java.time.Duration timeout)
DO
setPlatformName(java.lang.String platformName)
DO
setProxy(Proxy proxy)
DO
setScriptTimeout(java.time.Duration timeout)
DO
setStrictFileInteractability(boolean strictFileInteractability)
DO
setUnhandledPromptBehaviour(UnexpectedAlertBehaviour behaviour)
-
Methods inherited from class org.openqa.selenium.MutableCapabilities
equals, hashCode, merge, setCapability, setCapability, setCapability, setCapability, toJson, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openqa.selenium.Capabilities
getBrowserName, getBrowserVersion, getPlatformName, is
-
-
-
-
Method Detail
-
setBrowserVersion
public DO setBrowserVersion(java.lang.String browserVersion)
-
setPlatformName
public DO setPlatformName(java.lang.String platformName)
-
setImplicitWaitTimeout
public DO setImplicitWaitTimeout(java.time.Duration timeout)
-
setPageLoadTimeout
public DO setPageLoadTimeout(java.time.Duration timeout)
-
setScriptTimeout
public DO setScriptTimeout(java.time.Duration timeout)
-
setPageLoadStrategy
public DO setPageLoadStrategy(PageLoadStrategy strategy)
-
setUnhandledPromptBehaviour
public DO setUnhandledPromptBehaviour(UnexpectedAlertBehaviour behaviour)
-
setAcceptInsecureCerts
public DO setAcceptInsecureCerts(boolean acceptInsecureCerts)
-
setStrictFileInteractability
public DO setStrictFileInteractability(boolean strictFileInteractability)
-
getCapabilityNames
public java.util.Set<java.lang.String> getCapabilityNames()
- Specified by:
getCapabilityNames
in interfaceCapabilities
- Overrides:
getCapabilityNames
in classMutableCapabilities
-
getExtraCapabilityNames
protected abstract java.util.Set<java.lang.String> getExtraCapabilityNames()
-
getCapability
public java.lang.Object getCapability(java.lang.String capabilityName)
- Specified by:
getCapability
in interfaceCapabilities
- Overrides:
getCapability
in classMutableCapabilities
- Parameters:
capabilityName
- The capability to return.- Returns:
- The value, or null if not set.
- See Also:
CapabilityType
-
getExtraCapability
protected abstract java.lang.Object getExtraCapability(java.lang.String capabilityName)
-
asMap
public java.util.Map<java.lang.String,java.lang.Object> asMap()
- Specified by:
asMap
in interfaceCapabilities
- Overrides:
asMap
in classMutableCapabilities
- Returns:
- The capabilities as a Map.
-
-