Show / Hide Table of Contents

Class AppFactory

Helper class to manage app package uploading to cloud provider and device connection.

Inheritance
Object
AppFactory
Namespace: AxaFrance.WebEngine.MobileApp
Assembly: AxaFrance.WebEngine.MobileApp.dll
Syntax
public static class AppFactory

Methods

| Edit this page View Source

ActionBack(AppiumDriver)

Press the back button of the device.

Declaration
public static void ActionBack(AppiumDriver driver)
Parameters
Type Name Description
AppiumDriver driver

the appiumdriver to be used.

| Edit this page View Source

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
AppiumDriver

Once the connection to device is established, a AppiumDriver (AndroidDriver or IOSDriver) instance will return.

| Edit this page View Source

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
AppiumDriver appiumDriver
String targetContext
Exceptions
Type Condition
WebEngineGeneralException
  • Edit this page
  • View Source
In this article
Back to top Copyright ® 2016-2024 AXA France, All rights reserved.