appium-uiautomator

Appium Android UI Automator interface

Moved to appium-android-bootstrap
Last updated a year ago by imurchie .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install appium-uiautomator 
SYNC missed versions from official npm registry.

appium-uiautomator

Greenkeeper badge

Android uiautomator driver used by Appium

Installing

npm install appium-uiautomator

Usage

Appium-uiautomator has two methods start and shutdown.

async start (uiAutomatorBinaryPath, className, startDetector, ...extraParams)

start will push uiAutomatorBinary to device and start UiAutomator with className and return the SubProcess. startDetector and extraParams are optional arguments. startDetector will be used as condition to check against your output stream of test if any. extraParams will be passed along as command line arguments when starting the subProcess.

shutdown will kill UiAutomator process on the device and also kill the subProcess.

import UiAutomator from 'appium-uiautomator';
import ADB from 'appium-adb';

let adb = await ADB.createADB();
let uiAutomator = new UiAutomator(adb);

let startDetector = (s) => { return /Appium Socket Server Ready/.test(s); };
await uiAutomator.start('foo/bar.jar', 'io.appium.android.bootstrap.Bootstrap',
                        startDetector, '-e', 'disableAndroidWatchers', true);
await uiAutomator.shutdown();

watch

npm run watch

Publishing

npm version [patch|minor|major]
git push --tags origin master
npm publish

Current Tags

  • 1.3.0                                ...           latest (a year ago)

16 Versions

  • 1.3.0 [deprecated]           ...           a year ago
  • 1.2.0 [deprecated]           ...           2 years ago
  • 1.1.5 [deprecated]           ...           2 years ago
  • 1.1.4 [deprecated]           ...           2 years ago
  • 1.1.3 [deprecated]           ...           2 years ago
  • 1.1.2 [deprecated]           ...           2 years ago
  • 1.1.1 [deprecated]           ...           3 years ago
  • 1.1.0 [deprecated]           ...           4 years ago
  • 1.0.1 [deprecated]           ...           4 years ago
  • 1.0.0 [deprecated]           ...           4 years ago
  • 0.0.5-beta                                ...           4 years ago
  • 0.0.4 [deprecated]           ...           6 years ago
  • 0.0.3 [deprecated]           ...           6 years ago
  • 0.0.2 [deprecated]           ...           6 years ago
  • 0.0.1 [deprecated]           ...           6 years ago
  • 0.0.0 [deprecated]           ...           6 years ago
Downloads
Today 5
This Week 182
This Month 208
Last Day 9
Last Week 174
Last Month 788
Dependencies (4)
Dev Dependencies (14)

Copyright 2014 - 2016 © taobao.org |