T
- The child class for a proper chaining.public class BaseOptions<T extends BaseOptions<T>> extends org.openqa.selenium.MutableCapabilities implements CanSetCapability<T>, SupportsAutomationNameOption<T>, SupportsEventTimingsOption<T>, SupportsPrintPageSourceOnFindFailureOption<T>, SupportsNoResetOption<T>, SupportsFullResetOption<T>, SupportsNewCommandTimeoutOption<T>, SupportsBrowserNameOption<T>, SupportsPlatformVersionOption<T>
AUTOMATION_NAME_OPTION
EVENT_TIMINGS_OPTION
PRINT_PAGE_SOURCE_ON_FIND_FAILURE_OPTION
NO_RESET_OPTION
FULL_RESET_OPTION
NEW_COMMAND_TIMEOUT_OPTION
BROWSER_NAME_OPTION
PLATFORM_VERSION_OPTION
Constructor and Description |
---|
BaseOptions()
Creates new instance with no preset capabilities.
|
BaseOptions(org.openqa.selenium.Capabilities source)
Creates new instance with provided capabilities.
|
BaseOptions(java.util.Map<java.lang.String,?> source)
Creates new instance with provided capabilities.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
asMap() |
T |
clone()
Makes a deep clone of the current Options instance.
|
java.lang.Object |
getCapability(java.lang.String capabilityName) |
org.openqa.selenium.Platform |
getPlatformName() |
T |
merge(org.openqa.selenium.Capabilities extraCapabilities) |
void |
setCapability(java.lang.String key,
java.lang.Object value) |
T |
setPlatformName(java.lang.String platform)
Set the kind of mobile device or emulator to use.
|
static java.lang.String |
toW3cName(java.lang.String capName)
Adds the 'appium:' prefix to the given capability name if necessary.
|
equals, getCapabilityNames, hashCode, setCapability, setCapability, setCapability, toJson, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getAutomationName, setAutomationName
doesEventTimings, eventTimings, setEventTimings
doesPrintPageSourceOnFindFailure, printPageSourceOnFindFailure, setPrintPageSourceOnFindFailure
doesNoReset, noReset, setNoReset
doesFullReset, fullReset, setFullReset
getNewCommandTimeout, setNewCommandTimeout
withBrowserName
getPlatformVersion, setPlatformVersion
getBrowserName, getBrowserVersion, getCapabilityNames, is
amend
public BaseOptions()
public BaseOptions(java.util.Map<java.lang.String,?> source)
source
- Capabilities map to merge into new instancepublic BaseOptions(org.openqa.selenium.Capabilities source)
source
- is Capabilities instance to merge into new instancepublic T setPlatformName(java.lang.String platform)
platform
- the kind of mobile device or emulator to use.CapabilityType.PLATFORM_NAME
@Nullable public org.openqa.selenium.Platform getPlatformName()
getPlatformName
in interface org.openqa.selenium.Capabilities
public java.util.Map<java.lang.String,java.lang.Object> asMap()
asMap
in interface org.openqa.selenium.Capabilities
asMap
in class org.openqa.selenium.MutableCapabilities
public T merge(org.openqa.selenium.Capabilities extraCapabilities)
merge
in interface org.openqa.selenium.Capabilities
merge
in class org.openqa.selenium.MutableCapabilities
public T clone()
clone
in class java.lang.Object
public void setCapability(java.lang.String key, @Nullable java.lang.Object value)
setCapability
in interface CanSetCapability<T extends BaseOptions<T>>
setCapability
in class org.openqa.selenium.MutableCapabilities
@Nullable public java.lang.Object getCapability(java.lang.String capabilityName)
getCapability
in interface org.openqa.selenium.Capabilities
getCapability
in class org.openqa.selenium.MutableCapabilities
public static java.lang.String toW3cName(java.lang.String capName)
capName
- the original capability name.