public class SelendroidStandaloneDriver extends Object implements ServerDetails
| Modifier and Type | Field and Description |
|---|---|
static String |
APP_BASE_PACKAGE |
static String |
APP_ID |
static String |
WD_RESP_KEY_SESSION_ID |
static String |
WD_RESP_KEY_STATUS |
static String |
WD_RESP_KEY_VALUE |
| Constructor and Description |
|---|
SelendroidStandaloneDriver(SelendroidConfiguration serverConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToAppsStore(File file)
This function will sign an android app and add it to the App Store.
|
String |
createNewTestSession(org.json.JSONObject caps) |
String |
createNewTestSession(org.json.JSONObject caps,
Integer retries) |
protected ActiveSession |
findActiveSession(AndroidDevice device) |
ActiveSession |
getActiveSession(String sessionId) |
List<ActiveSession> |
getActiveSessions()
FOR TESTING ONLY
|
String |
getCpuArch() |
String |
getOsName() |
String |
getOsVersion() |
protected SelendroidConfiguration |
getSelendroidConfiguration() |
String |
getServerVersion() |
SelendroidCapabilities |
getSessionCapabilities(String sessionId) |
org.json.JSONArray |
getSupportedApps() |
org.json.JSONArray |
getSupportedDevices() |
boolean |
isValidSession(String sessionId) |
void |
quitSelendroid() |
void |
setEventListener(SelendroidStandaloneDriverEventListener eventListener) |
void |
stopSession(String sessionId) |
byte[] |
takeScreenshot(String sessionId) |
public static final String WD_RESP_KEY_VALUE
public static final String WD_RESP_KEY_STATUS
public static final String WD_RESP_KEY_SESSION_ID
public static final String APP_BASE_PACKAGE
public static final String APP_ID
public SelendroidStandaloneDriver(SelendroidConfiguration serverConfiguration) throws AndroidSdkException, AndroidDeviceException
public void addToAppsStore(File file) throws AndroidSdkException
file - - The file to be added to the app storeAndroidSdkExceptionpublic String getServerVersion()
getServerVersion in interface ServerDetailspublic String getCpuArch()
getCpuArch in interface ServerDetailspublic String getOsVersion()
getOsVersion in interface ServerDetailspublic String getOsName()
getOsName in interface ServerDetailsprotected SelendroidConfiguration getSelendroidConfiguration()
public String createNewTestSession(org.json.JSONObject caps)
public List<ActiveSession> getActiveSessions()
public boolean isValidSession(String sessionId)
public void stopSession(String sessionId) throws AndroidDeviceException
AndroidDeviceExceptionpublic void quitSelendroid()
public SelendroidCapabilities getSessionCapabilities(String sessionId)
public ActiveSession getActiveSession(String sessionId)
public org.json.JSONArray getSupportedApps()
getSupportedApps in interface ServerDetailspublic org.json.JSONArray getSupportedDevices()
getSupportedDevices in interface ServerDetailsprotected ActiveSession findActiveSession(AndroidDevice device)
public byte[] takeScreenshot(String sessionId) throws AndroidDeviceException
AndroidDeviceExceptionpublic void setEventListener(SelendroidStandaloneDriverEventListener eventListener)
Copyright © 2015. All rights reserved.