public class IosCapability extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
APP_DIR_PATH |
static String |
APP_NAME |
org.openqa.selenium.remote.DesiredCapabilities |
capabilities |
static String |
CHROME_VERSION |
static String |
IS_HYBRID_APP |
List<String> |
simulatorList |
static int |
WDA_LOCAL_PORT |
| Constructor and Description |
|---|
IosCapability() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAppPath() |
org.openqa.selenium.remote.DesiredCapabilities |
getCapability() |
static List<String> |
getIosDeviceList()
gets the list of android devices including real devices + emulators require
idevice installed: brew install ideviceinstaller
|
boolean |
isRealDeviceConnected()
if adb device contains emulator, Then its an emulator otherwise, its a
connected real device
|
void |
setChromeDriver()
download chrome driver if hybrid app is enabled if Version is LATEST,
download latest driver unless set in config
|
org.openqa.selenium.remote.DesiredCapabilities |
setiOSCapabilties()
set capabilties with prefix ios.capabilties.
|
void |
setIosDevice()
sets device by following strategy: if device is connected, selects device if
emulator is not specified with "withDevice1() or with Device2() function,
select device 1 by default from properties else select emulator from
properties specified in panel config page
|
void |
setPort(String deviceName)
if device has port assigned, use assigned port else generate new port number
|
void |
setRealDevices()
sets real device
|
void |
setSimulator()
sets ios device number of devices must be equal or greater than number of
threads for parallel run
|
void |
setSingleSignIn()
runs subsequent tests without restarting the app removes the need to sign in
on every test if tests fail, it will restart the app
|
IosCapability |
withCapability(org.openqa.selenium.remote.DesiredCapabilities Capabilities) |
IosCapability |
withDevice(String device)
device: property name from property file.
|
IosCapability |
withIosCapability()
sets ios capabilities values are from maven or properties file maven has
higher priority than properties
|
public org.openqa.selenium.remote.DesiredCapabilities capabilities
public static String APP_DIR_PATH
public static String APP_NAME
public static String IS_HYBRID_APP
public static String CHROME_VERSION
public static int WDA_LOCAL_PORT
public IosCapability withCapability(org.openqa.selenium.remote.DesiredCapabilities Capabilities)
public org.openqa.selenium.remote.DesiredCapabilities getCapability()
public IosCapability withDevice(String device)
device - public String getAppPath()
public IosCapability withIosCapability()
public org.openqa.selenium.remote.DesiredCapabilities setiOSCapabilties()
public void setSingleSignIn()
public boolean isRealDeviceConnected()
devices - public static List<String> getIosDeviceList()
public void setSimulator()
public void setRealDevices()
public void setIosDevice()
public void setPort(String deviceName)
deviceName - public void setChromeDriver()
Copyright © 2022. All rights reserved.