Package com.magenic.jmaqs.appium
Class AppiumConfig
java.lang.Object
com.magenic.jmaqs.appium.AppiumConfig
public class AppiumConfig
extends java.lang.Object
Class AppiumConfig.
-
Method Summary
Modifier and Type Method Description static java.util.Map<java.lang.String,java.lang.Object>getCapabilitiesAsObjects()Gets capabilities as objects.static java.util.Map<java.lang.String,java.lang.String>getCapabilitiesAsStrings()Gets capabilities as strings.static java.time.DurationgetCommandTimeout()Gets command timeout.static java.lang.StringgetDeviceName()Gets the device name.static PlatformTypegetDeviceType()Gets device type.static PlatformTypegetDeviceType(java.lang.String platformName)Gets device type.static java.net.URLgetMobileHubUrl()Gets the mobile hub url.static java.lang.StringgetMobileHubUrlString()Gets the mobile hub url string.static java.time.DurationgetMobileTimeout()Gets mobile timeout.static java.lang.StringgetPlatformName()Gets the mobile device OS.static java.lang.StringgetPlatformVersion()Gets the OS version.static booleangetSavePageSourceOnFail()Gets save page source on fail.static booleangetSoftAssertScreenShot()Gets soft assert screen shot.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getPlatformName
public static java.lang.String getPlatformName()Gets the mobile device OS.- Returns:
- the mobile device OS
-
getPlatformVersion
public static java.lang.String getPlatformVersion()Gets the OS version.- Returns:
- the OS version
-
getDeviceName
public static java.lang.String getDeviceName()Gets the device name.- Returns:
- the device name
-
getSavePageSourceOnFail
public static boolean getSavePageSourceOnFail()Gets save page source on fail.- Returns:
- the save page source on fail
-
getSoftAssertScreenShot
public static boolean getSoftAssertScreenShot()Gets soft assert screen shot.- Returns:
- the soft assert screen shot
-
getMobileHubUrlString
public static java.lang.String getMobileHubUrlString()Gets the mobile hub url string.- Returns:
- the mobile hub url string
-
getMobileHubUrl
public static java.net.URL getMobileHubUrl()Gets the mobile hub url.- Returns:
- the mobile hub url
-
getCommandTimeout
public static java.time.Duration getCommandTimeout()Gets command timeout.- Returns:
- the command timeout
-
getMobileTimeout
public static java.time.Duration getMobileTimeout()Gets mobile timeout.- Returns:
- the mobile timeout
-
getCapabilitiesAsStrings
public static java.util.Map<java.lang.String,java.lang.String> getCapabilitiesAsStrings()Gets capabilities as strings.- Returns:
- the capabilities as strings
-
getCapabilitiesAsObjects
public static java.util.Map<java.lang.String,java.lang.Object> getCapabilitiesAsObjects()Gets capabilities as objects.- Returns:
- the capabilities as objects
-
getDeviceType
Gets device type.- Returns:
- the device type
-
getDeviceType
Gets device type.- Parameters:
platformName- the platform name- Returns:
- the device type
-