public class MobileDriver extends UiDriver
| Modifier and Type | Field and Description |
|---|---|
static String |
DEVICE_ANDROID |
static String |
DEVICE_ANDROID_EMULATOR |
static String |
DEVICE_IPAD_SIMULATOR |
static String |
DEVICE_IPHONE_SIMULATOR |
static String |
NATIVE_CONTEXT |
| Constructor and Description |
|---|
MobileDriver(String deviceName,
String platformVersion,
String udid) |
MobileDriver(String deviceName,
String platformVersion,
String udid,
String host) |
MobileDriver(String deviceName,
String platformVersion,
String udid,
String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAppCache(String applicationPackage)
Clear application cache
|
String |
getAdbLocation() |
String |
getAndroidHome() |
String |
getHost() |
Object |
getInternalObject(String objectName)
NOTE: This method should not be used directly into the test scripts.
|
MobileEngine |
getMobileEngine() |
org.openqa.selenium.Dimension |
getScreenDimensions() |
boolean |
isAndroidAgent() |
boolean |
isWorkingRemotely() |
void |
setAndroidHome(String androidHome) |
void |
setScreenshotOnError(boolean screenshotOnError) |
void |
start()
Deprecated.
Use
start(String) method instead. |
void |
start(String appPath)
Start session to device and load the application
|
void |
stop()
stop the driver
|
void |
stop(String applicationPackage)
Deprecated.
Use
stop() method instead |
void |
stopIOSSimulator()
Stopping iOS Simulator
|
getChromeDriver, getChromeDriver, getCustomDriver, getEdgeDriver, getEdgeDriver, getFirefoxDriver, getFirefoxDriver, getFirefoxDriver, getHiddenBrowserDriver, getHiddenBrowserDriver, getInternetExplorerDriver, getInternetExplorerDriver, getMobileDriver, getMobileDriver, getPhantomJSDriver, getRobotDriver, getSafariDriver, getSafariDriver, getSwingDriver, getSwingDriver, getSwingDriver, getSwingDriverpublic static final String DEVICE_ANDROID_EMULATOR
public static final String DEVICE_ANDROID
public static final String DEVICE_IPHONE_SIMULATOR
public static final String DEVICE_IPAD_SIMULATOR
public static final String NATIVE_CONTEXT
public MobileDriver(String deviceName, String platformVersion, String udid, String host)
public boolean isAndroidAgent()
public String getHost()
public boolean isWorkingRemotely()
public void setAndroidHome(String androidHome)
androidHome - example: "d:\\android\\android-sdk\\"@Deprecated public void start()
start(String) method instead.public void start(String appPath)
appPath - the absolute path to the application:
iOS: absolute path to simulator-compiled .app file or the bundle_id of the desired target on device
Android: absolute path to .apk file
public void stop()
UiDriver@Deprecated public void stop(String applicationPackage)
stop() method insteadapplicationPackage - application package namepublic void clearAppCache(String applicationPackage)
applicationPackage - application package namepublic MobileEngine getMobileEngine()
public Object getInternalObject(String objectName)
public String getAndroidHome()
public String getAdbLocation()
public void setScreenshotOnError(boolean screenshotOnError)
screenshotOnError - whether to create screenshot on errorpublic org.openqa.selenium.Dimension getScreenDimensions()
public void stopIOSSimulator()
Copyright © 2017 Axway Software. All rights reserved.