public class WebMobileDriverFactory
Modifiers | Name | Description |
---|---|---|
static String |
EXECUTED_MOBILE_DEVICE_ID |
|
static String |
EXECUTED_MOBILE_PLATFORM |
|
static String |
MOBILE_DRIVER_PROPERTY |
Type Params | Return Type | Name and description |
---|---|---|
|
public static void |
cleanup() Clean up all running drivers and processes |
|
public static void |
closeDriver() Close the current active mobile driver |
|
public static AppiumDriver |
createMobileDriver(WebUIDriverType osType) Create a new web mobile driver |
|
public static String |
getDeviceId() Get the id of the current mobile device |
|
public static String |
getDeviceManufacturer() Get the manufacturer of the current mobile device |
|
public static String |
getDeviceModel() Get the model of the current mobile device |
|
public static String |
getDeviceName() Get the name of the current mobile device |
|
public static String |
getDeviceOS() Get the os of the current mobile device |
|
public static String |
getDeviceOSVersion() Get the os version of the current mobile device |
|
public static String |
getDevicePlatform() Get the platform of the current active driver |
|
public static AppiumDriver |
getDriver() Get the current active web mobile driver |
|
public static WebUIDriverType |
getWebMobileDriverType() Get the web mobile driver type of the current active driver |
|
public static void |
setDriver(AppiumDriver driver) Sets the current active web mobile driver. |
|
public static AppiumDriver |
startExisitingMobileDriver(IDriverType driverType, String sessionId, String remoteServerUrl) |
Clean up all running drivers and processes
Close the current active mobile driver
Create a new web mobile driver
osType
- the os type of the new mobile driver with type WebUIDriverTypeGet the id of the current mobile device
Get the manufacturer of the current mobile device
Get the model of the current mobile device
Get the name of the current mobile device
Get the os of the current mobile device
Get the os version of the current mobile device
Get the platform of the current active driver
Possible values: iOS, Android
Get the current active web mobile driver
Get the web mobile driver type of the current active driver
Sets the current active web mobile driver.
driver
- the mobile driver to be set