Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

appium-youiengine-driver

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appium-youiengine-driver

Appium You.i Engine application driver

  • 1.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
28K
decreased by-7.12%
Maintainers
1
Weekly downloads
 
Created
Source

Appium You.i Engine Driver

Appium You.i Engine Driver is a test automation tool for devices of various platforms 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

Desired Capabilities

Desired capabilities (caps) are a set of keys and values (i.e., a map or hash) sent to the Appium server to tell the server what kind of automation session we’re interested in starting up. These caps are defined in the appium.txt file. There are various capabilities which can modify the behavior of the server during automation.

CapabilityDescriptionValues
youiEngineAppAddressThe IP address of the device on which the app is running. localhost for simulator. Device’s IP address for a real device`localhost, <device’s IP address>

Minimum required capabilities per platform

Below is a sample of the minimum required caps per platform.

iOS
CapabilitySimulatorReal device
app<path to the app><path to the app>
automationNameYouiEngineYouiEngine
deviceName<iOS Simulator device name><device’s name>
platformNameiOSiOS
platformVersion<iOS version><iOS version>
udid<device’s udid><device’s udid>
xcodeOrgId<Team ID><Team ID>
youiEngineAppAddresslocalhost<device’s IP address>
Android
CapabilityReal device
app<path to the app>
automationNameYouiEngine
deviceName<device’s ID>
platformNameiOS
youiEngineAppAddress<device’s IP address>
macOS

Support added in 5.0+

CapabilityReal device
app<path to the app>
automationNameYouiEngine
deviceName<cannot be left blank>
platformNameMac
youiEngineAppAddresslocalhost
You.i macOS (does not use appium-mac-driver)

Support added in 5.0+

CapabilityReal device
app<path to the app>
automationNameYouiEngine
deviceName<cannot be blank>
platformNameYIMac
showXcodeLog1true
youiEngineAppAddresslocalhost

1 Optional.

You.i tvOS

Support added in 5.0+ * If another app is installed with You.i's socket, it may connect to it. All You.i apps should be deleted before running Appium.

CapabilityReal device
app<path to the app>
automationNameYouiEngine
deviceName<cannot be blank>
platformNameYItvOS
udid<device’s udid>
youiEngineAppAddress<device’s IP address>
BlueSky

Support added in 5.0+

CapabilityReal device
app<path to the app>
automationNameYouiEngine
deviceName<cannot be blank>
password<dev account password>
platformNameBlueSky
username<dev account username>
youiEngineAppAddress<device’s IP address>

Notes:

  • For iOS 8+, set the following on your device: Settings -> Developer -> Set UI Automation -> true
  • xcodeOrgId
  • Android device name: found using adb devices

Supported Commands

CommandEngine Version Support
Clear Element4.2.5+
Click4.2.1+
Find Element14.2.1+
Find Elements14.2.1+
Get Element Attribute24.2.1+
Get All Contexts4.2.1+
Get Current Context4.2.1+
Get Element Location4.2.5+
Get Element Size4.2.5+
Get Element Text4.2.7+
Get Page Source4.2.1+
Get Window Size4.4.5+
Go Back5.0+
Is Element Displayed4.2.5+
Is Element Enabled4.2.7+
Is Element Selected4.2.5+
Long Tap4.2.7+
Move4.2.7+
Remove App4.2.1+
Retrieve Device Settings4.2.5+
Send Keys34.2.1+
Set Implicit Wait Timeout4.2.1+
Set Timeouts4.2.1+
Take Screenshot4.2.1+
Touch Down4.2.7+
Touch Up4.2.7+
Settings44.2.5+

1 See Selector strategies below

2 See Attributes below

3 Starting with 5.0, you can send a general keypress (not targeted at an element), by using sendkeys on the root element

4 See Settings below

Proxied Command (iOS, Android)
Background App
Close an App
GetLogs
Get available log types
Get Orientation
Get App Strings
Is App Installed
Launch App
Lock
Set Orientation
Proxied Command (iOS only)
Shake
Proxied Command (Android only)
Is Device Locked
Long Press Key Code
Press Key Code
Toggle Location Services
Unlock

Attributes

The following attributes can be queried using attribute

An attributes filter can be added to the supported search strategies (name, class, id, accessibility id) by appending the following format to the strategy value: [@attributeType='attributeValue']

Examples (Ruby):

find_element(name: "Title[@text='Big Buck Bunny']")

find_element(class: "PushButtonView[@isHittable='true']")

AttributeReturn TypeEngine Version Support
classNamestring4.5.1+
compositeOpacityfloat4.2.14+
hasOpacitybool4.5.1+
hasFocusbool4.5.1+
idstring4.5.1+
isEnabledbool5.0+
isDisplayedbool4.5.1+
isFullyDisplayedbool4.5.2+
isHittablebool4.5.1+
isHorizontalScrollingbool4.5.2+
isScrollingbool4.5.2+
isSelectedbool5.0+
localOpacityfloat4.2.14+
namestring4.2.1+
textstring4.5.1+
visibilityFlagbool4.5.1+

Settings

The following commands are used with getSettings and updateSettings

Examples (Ruby):

get_settings

update_settings TimeDilation: 10

update_settings SourceTreeFilter: "[@isDisplayed='true']"

SettingsEngine Version SupportValue
TimeDilation4.4.5+float (>0)
SourceTreeFilter4.5.1+string (format: [@attributeType='attributeValue'])

Selector strategies

Supported selector strategies
name
id1
class name
accessibility id
1 Starting with 5.0, id selector can be used to search for React Native testID.

Keywords

FAQs

Package last updated on 13 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc