Skip to content

Latest commit

 

History

History
90 lines (77 loc) · 2.93 KB

README.md

File metadata and controls

90 lines (77 loc) · 2.93 KB

Appium You.i Engine Driver

Appium You.i Engine Driver is a test automation tool for devices of various platforms (iOS, Android) running applications built with You.i Engine. Appium You.i Driver automates You.i Engine applications, tested on simulators and real devices. Appium You.i Driver is part of the Appium mobile test automation tool.

iOS Support

Appium You.i Engine Driver supports iOS versions 8+

Android Support

Appium You.i Engine Driver supports Android versions 4.1+ (API level 16+)

Installation

npm install appium-youiengine-driver

Usage

Import You.i Engine Driver, set desired capabilities and create a session:

import { YouiEngineDriver } from `appium-youiengine-driver`

let defaultCaps = {
  app: 'path/to/your.app',
  automationName: 'YouiEngine',
  platformName: 'iOS'
  deviceName: 'iPhone 6'
  youiEngineAppAddress: 'localhost'
};

let driver = new YouiEngineDriver();
await driver.createSession(defaultCaps);

Run commands:

console.log(await driver.getPageSource());

Commands

Command
clearNewCommandTimeout
click
findElOrEls
getAttribute
getContexts
getCurrentContext
getPageSource
getScreenshot
getSettings
getText
implicitWait
implicitWaitForCondition
isSelected
isEnabled
isDisplayed
removeApp
setValue
startNewCommandTimeout
timeouts
updateSettings
Proxied Command (iOS, Android)
background
closeApp
getLog
getLogTypes
getOrientation
getStrings
isAppInstalled
launchApp
lock1
setOrientation
Proxied Command (iOS only)
mobileShake
Proxied Command (Android only)
unlock
isLocked
toggleData
toggleFlightMode
toggleLocationServices
toggleWiFi

API Notes

1 lock behaves differently in Android than it does in iOS. In Android it does not take any arguments, and locks the screen and returns immediately.