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 |
clear |
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 |
getWindowSize |
isAppInstalled |
launchApp |
lock 1 |
setOrientation |
Proxied Command (iOS only) |
---|
mobileShake |
Proxied Command (Android only) |
---|
getNetworkConnection 2 |
isAppInstalled |
isLocked |
longPressKeyCode |
pressKeyCode |
setNetworkConnection 2 |
toggleLocationServices |
unlock |
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.
2 toggleWiFi
, toggleData
, toggleFlightMode
can be achieved via getNetworkConnection
and setNetworkConnection
.
FindBy strategies
Supported FindBy strategies |
---|
name |
id |
class name |