Class AppFactory
Helper class to manage app package uploading to cloud provider and device connection.
Inheritance
System.Object
AppFactory
Namespace: AxaFrance.WebEngine.MobileApp
Assembly: AxaFrance.WebEngine.MobileApp.dll
Syntax
public static class AppFactory
Methods
| Improve this Doc View SourceActionBack(AppiumDriver)
Press the back button of the device.
Declaration
public static void ActionBack(AppiumDriver driver)
Parameters
Type | Name | Description |
---|---|---|
OpenQA.Selenium.Appium.AppiumDriver | driver | the appiumdriver to be used. |
GetDriver(Platform)
Gets the WebDriver to Mobile App Testing using configuration of Instance
Declaration
public static AppiumDriver GetDriver(Platform platform)
Parameters
Type | Name | Description |
---|---|---|
Platform | platform | The Test platform: Android or iOS |
Returns
Type | Description |
---|---|
OpenQA.Selenium.Appium.AppiumDriver | Once the connection to device is established, a AppiumDriver (AndroidDriver or IOSDriver) instance will return. |
SwitchContext(AppiumDriver, String)
Switch current context within a hybird application (native Application with web views)
Declaration
public static void SwitchContext(AppiumDriver appiumDriver, string targetContext)
Parameters
Type | Name | Description |
---|---|---|
OpenQA.Selenium.Appium.AppiumDriver | appiumDriver | |
System.String | targetContext |
Exceptions
Type | Condition |
---|---|
WebEngineGeneralException |