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_OPTIONEVENT_TIMINGS_OPTIONPRINT_PAGE_SOURCE_ON_FIND_FAILURE_OPTIONNO_RESET_OPTIONFULL_RESET_OPTIONNEW_COMMAND_TIMEOUT_OPTIONBROWSER_NAME_OPTIONPLATFORM_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, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetAutomationName, setAutomationNamedoesEventTimings, eventTimings, setEventTimingsdoesPrintPageSourceOnFindFailure, printPageSourceOnFindFailure, setPrintPageSourceOnFindFailuredoesNoReset, noReset, setNoResetdoesFullReset, fullReset, setFullResetgetNewCommandTimeout, setNewCommandTimeoutwithBrowserNamegetPlatformVersion, setPlatformVersiongetBrowserName, getBrowserVersion, getCapabilityNames, isamendpublic 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.Capabilitiespublic java.util.Map<java.lang.String,java.lang.Object> asMap()
asMap in interface org.openqa.selenium.CapabilitiesasMap in class org.openqa.selenium.MutableCapabilitiespublic T merge(org.openqa.selenium.Capabilities extraCapabilities)
merge in interface org.openqa.selenium.Capabilitiesmerge in class org.openqa.selenium.MutableCapabilitiespublic T clone()
clone in class java.lang.Objectpublic 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.CapabilitiesgetCapability in class org.openqa.selenium.MutableCapabilitiespublic static java.lang.String toW3cName(java.lang.String capName)
capName - the original capability name.