T - The child class for a proper chaining.@Deprecated
public class MobileOptions<T extends MobileOptions<T>>
extends org.openqa.selenium.MutableCapabilities
| Constructor and Description |
|---|
MobileOptions()
Deprecated.
Creates new instance with no preset capabilities.
|
MobileOptions(org.openqa.selenium.Capabilities source)
Deprecated.
Creates new instance with provided capabilities capabilities.
|
| Modifier and Type | Method and Description |
|---|---|
protected T |
amend(java.lang.String optionName,
java.lang.Object value)
Deprecated.
|
boolean |
doesAutoWebview()
Deprecated.
Get whether the app moves directly into Webview context.
|
boolean |
doesClearSystemFiles()
Deprecated.
Get whether the app deletes generated files at the end of a session.
|
boolean |
doesEventTimings()
Deprecated.
Get whether the app reports the timings for various Appium-internal events.
|
boolean |
doesFullReset()
Deprecated.
Get whether the app does a full reset.
|
boolean |
doesNoReset()
Deprecated.
Get whether the app does not do a reset.
|
boolean |
doesPrintPageSourceOnFindFailure()
Deprecated.
Get whether the app to print page source when a find operation fails.
|
java.lang.String |
getApp()
Deprecated.
Get the app location.
|
java.lang.String |
getAutomationName()
Deprecated.
Get the automation engine to use.
|
java.lang.String |
getDeviceName()
Deprecated.
Get the name of the device.
|
java.lang.String |
getLanguage()
Deprecated.
Get language abbreviation for use in session.
|
java.lang.String |
getLocale()
Deprecated.
Get locale abbreviation for use in session.
|
java.time.Duration |
getNewCommandTimeout()
Deprecated.
Get the timeout for new commands.
|
org.openqa.selenium.ScreenOrientation |
getOrientation()
Deprecated.
Get the orientation of the screen.
|
java.lang.String |
getOtherApps()
Deprecated.
Get the list of apps to install before running a test.
|
java.lang.String |
getPlatformVersion()
Deprecated.
Get the version of the platform.
|
java.lang.String |
getUdid()
Deprecated.
Get the id of the device.
|
boolean |
isEnablePerformanceLogging()
Deprecated.
Get the app logs performance.
|
T |
merge(org.openqa.selenium.Capabilities extraCapabilities)
Deprecated.
|
T |
setApp(java.lang.String path)
Deprecated.
Set the absolute local path for the location of the App.
|
T |
setApp(java.net.URL url)
Deprecated.
Set the remote http URL for the location of the App.
|
T |
setAutomationName(java.lang.String name)
Deprecated.
Set the automation engine to use.
|
T |
setAutoWebview()
Deprecated.
Set the app to move directly into Webview context.
|
T |
setAutoWebview(boolean bool)
Deprecated.
Set whether the app moves directly into Webview context.
|
T |
setClearSystemFiles()
Deprecated.
Set the app to delete any generated files at the end of a session.
|
T |
setClearSystemFiles(boolean bool)
Deprecated.
Set whether the app deletes generated files at the end of a session.
|
T |
setDeviceName(java.lang.String deviceName)
Deprecated.
Set the name of the device.
|
T |
setEnablePerformanceLogging()
Deprecated.
Set the app to enable performance logging.
|
T |
setEnablePerformanceLogging(boolean bool)
Deprecated.
Set whether the app logs performance.
|
T |
setEventTimings()
Deprecated.
Set the app to report the timings for various Appium-internal events.
|
T |
setEventTimings(boolean bool)
Deprecated.
Set whether the app reports the timings for various Appium-internal events.
|
T |
setFullReset()
Deprecated.
Set the app to do a full reset.
|
T |
setFullReset(boolean bool)
Deprecated.
Set whether the app does a full reset.
|
T |
setLanguage(java.lang.String language)
Deprecated.
Set language abbreviation for use in session.
|
T |
setLocale(java.lang.String locale)
Deprecated.
Set locale abbreviation for use in session.
|
T |
setNewCommandTimeout(java.time.Duration duration)
Deprecated.
Set the timeout for new commands.
|
T |
setNoReset()
Deprecated.
Set the app not to do a reset.
|
T |
setNoReset(boolean bool)
Deprecated.
Set whether the app does not do a reset.
|
T |
setOrientation(org.openqa.selenium.ScreenOrientation orientation)
Deprecated.
Set the orientation of the screen.
|
T |
setOtherApps(java.lang.String apps)
Deprecated.
Set the location of the app(s) to install before running a test.
|
T |
setPlatformName(java.lang.String platform)
Deprecated.
Set the kind of mobile device or emulator to use.
|
T |
setPlatformVersion(java.lang.String version)
Deprecated.
Set the version of the platform.
|
T |
setPrintPageSourceOnFindFailure()
Deprecated.
Set the app to print page source when a find operation fails.
|
T |
setPrintPageSourceOnFindFailure(boolean bool)
Deprecated.
Set whether the app to print page source when a find operation fails.
|
T |
setUdid(java.lang.String id)
Deprecated.
Set the id of the device.
|
asMap, equals, getCapability, getCapabilityNames, hashCode, setCapability, setCapability, setCapability, setCapability, toJson, toStringpublic MobileOptions()
public MobileOptions(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_NAMEpublic T setApp(java.lang.String path)
.ipa file (IOS),path - is a String representing the location of the AppMobileCapabilityType.APPpublic T setApp(java.net.URL url)
url - is the URL representing the location of the AppMobileCapabilityType.APPpublic java.lang.String getApp()
MobileCapabilityType.APPpublic T setAutomationName(java.lang.String name)
name - is the name of the automation engineMobileCapabilityType.AUTOMATION_NAMEpublic java.lang.String getAutomationName()
MobileCapabilityType.AUTOMATION_NAMEpublic T setAutoWebview()
MobileCapabilityType.AUTO_WEBVIEWpublic T setAutoWebview(boolean bool)
bool - is whether the app moves directly into Webview context.MobileCapabilityType.AUTO_WEBVIEWpublic boolean doesAutoWebview()
MobileCapabilityType.AUTO_WEBVIEWpublic T setClearSystemFiles()
MobileCapabilityType.CLEAR_SYSTEM_FILESpublic T setClearSystemFiles(boolean bool)
bool - is whether the app deletes generated files at the end of a session.MobileCapabilityType.CLEAR_SYSTEM_FILESpublic boolean doesClearSystemFiles()
MobileCapabilityType.CLEAR_SYSTEM_FILESpublic T setDeviceName(java.lang.String deviceName)
deviceName - is the name of the device.MobileCapabilityType.DEVICE_NAMEpublic java.lang.String getDeviceName()
MobileCapabilityType.DEVICE_NAMEpublic T setEnablePerformanceLogging()
MobileCapabilityType.ENABLE_PERFORMANCE_LOGGINGpublic T setEnablePerformanceLogging(boolean bool)
bool - is whether the app logs performance.MobileCapabilityType.ENABLE_PERFORMANCE_LOGGINGpublic boolean isEnablePerformanceLogging()
MobileCapabilityType.ENABLE_PERFORMANCE_LOGGINGpublic T setEventTimings()
MobileCapabilityType.EVENT_TIMINGSpublic T setEventTimings(boolean bool)
bool - is whether the app enables event timings.MobileCapabilityType.EVENT_TIMINGSpublic boolean doesEventTimings()
MobileCapabilityType.EVENT_TIMINGSpublic T setFullReset()
MobileCapabilityType.FULL_RESETpublic T setFullReset(boolean bool)
bool - is whether the app does a full reset.MobileCapabilityType.FULL_RESETpublic boolean doesFullReset()
MobileCapabilityType.FULL_RESETpublic T setLanguage(java.lang.String language)
language - is the language abbreviation.MobileCapabilityType.LANGUAGEpublic java.lang.String getLanguage()
MobileCapabilityType.LANGUAGEpublic T setLocale(java.lang.String locale)
locale - is the locale abbreviation.MobileCapabilityType.LOCALEpublic java.lang.String getLocale()
MobileCapabilityType.LOCALEpublic T setNewCommandTimeout(java.time.Duration duration)
duration - is the allowed time before seeing a new command.MobileCapabilityType.NEW_COMMAND_TIMEOUTpublic java.time.Duration getNewCommandTimeout()
MobileCapabilityType.NEW_COMMAND_TIMEOUTpublic T setNoReset()
MobileCapabilityType.NO_RESETpublic T setNoReset(boolean bool)
bool - is whether the app does not do a reset.MobileCapabilityType.NO_RESETpublic boolean doesNoReset()
MobileCapabilityType.NO_RESETpublic T setOrientation(org.openqa.selenium.ScreenOrientation orientation)
orientation - is the screen orientation.MobileCapabilityType.ORIENTATIONpublic org.openqa.selenium.ScreenOrientation getOrientation()
MobileCapabilityType.ORIENTATIONpublic T setOtherApps(java.lang.String apps)
apps - is the apps to install.MobileCapabilityType.OTHER_APPSpublic java.lang.String getOtherApps()
MobileCapabilityType.OTHER_APPSpublic T setPlatformVersion(java.lang.String version)
version - is the platform version.MobileCapabilityType.PLATFORM_VERSIONpublic java.lang.String getPlatformVersion()
MobileCapabilityType.PLATFORM_VERSIONpublic T setPrintPageSourceOnFindFailure()
MobileCapabilityType.PRINT_PAGE_SOURCE_ON_FIND_FAILUREpublic T setPrintPageSourceOnFindFailure(boolean bool)
bool - is whether to print page source.MobileCapabilityType.PRINT_PAGE_SOURCE_ON_FIND_FAILUREpublic boolean doesPrintPageSourceOnFindFailure()
MobileCapabilityType.PRINT_PAGE_SOURCE_ON_FIND_FAILUREpublic T setUdid(java.lang.String id)
id - is the unique device identifier.MobileCapabilityType.UDIDpublic java.lang.String getUdid()
MobileCapabilityType.UDIDpublic T merge(org.openqa.selenium.Capabilities extraCapabilities)
merge in interface org.openqa.selenium.Capabilitiesmerge in class org.openqa.selenium.MutableCapabilitiesprotected T amend(java.lang.String optionName, java.lang.Object value)