public final class AppiumPlugin extends PluginAncestor
Mobile plugin (in beta) provides a set of MScript methods to test web and native mobile applications in real physical device and in simulated device through Appium.
Appium server must be installed separately (Install Appium) or selenium web service like saucelabs and others that support appium service, as well as the mobile device sdk: Android Studio (SDK) for Android devices or X Code Development for IOS devices.
Typically you will include following capability settings in $MBT._START trigger in each model or in webdriver_Mobile.properties file for all models:MScriptInterface.IGNORE_INHERITED_METHOD, MScriptInterface.NOT_MSCRIPT_METHOD, MScriptInterface.TO_PLUGIN
Constructor and Description |
---|
AppiumPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
close()
INTERNAL USE ONLY
|
io.appium.java_client.android.AndroidDriver<?> |
getAndroidDriver()
returns Android webdriver.
|
io.appium.java_client.AppiumDriver<org.openqa.selenium.WebElement> |
getAppiumDriver()
returns AppiumDriver <WebElement> which is used to interact with
web element.
|
io.appium.java_client.ios.IOSDriver<?> |
getIOSDriver()
returns IOS webdriver
|
String |
getPluginDesc() |
String |
getPluginID() |
org.openqa.selenium.WebDriver |
getWegDriver()
INTERNAL USE ONLY
|
void |
setAppiumSvrURL(String url_p)
sets Appium server url.
|
void |
setAutPath(String autPath_p)
sets path to the AUT.
|
void |
setPlatformAndroid() |
void |
setPlatformIpad() |
void |
setPlatformIphone() |
void |
start()
INTERNAL USE ONLY
|
enterInitialState, exitFinalState
public void close()
INTERNAL USE ONLY
close
in class PluginAncestor
public void setPlatformAndroid()
public void setPlatformIphone()
public void setPlatformIpad()
public void start() throws Exception
INTERNAL USE ONLY
start
in class PluginAncestor
Exception
public void setAppiumSvrURL(String url_p)
url_p
- public void setAutPath(String autPath_p)
autPath_p
- public io.appium.java_client.android.AndroidDriver<?> getAndroidDriver()
public io.appium.java_client.ios.IOSDriver<?> getIOSDriver()
public io.appium.java_client.AppiumDriver<org.openqa.selenium.WebElement> getAppiumDriver()
public org.openqa.selenium.WebDriver getWegDriver()
INTERNAL USE ONLY
returns webDriver object. This is the same object as getAppiummDriver(). It just gives a different set of functions for Selenium WebDriver.public String getPluginID()
getPluginID
in class PluginAncestor
public String getPluginDesc()
getPluginDesc
in class PluginAncestor
Copyright TestOptimal, LLC