Skip to content

Commit

Permalink
Merge pull request #52 from scottdixon/scottdixon-1.5readme
Browse files Browse the repository at this point in the history
Initial readme
  • Loading branch information
Scott Dixon committed Oct 13, 2015
2 parents a05d227 + 7e87511 commit 894a8ef
Showing 1 changed file with 124 additions and 2 deletions.
126 changes: 124 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,132 @@
[![Build Status](https://travis-ci.org/appium/appium-android-driver.svg?branch=master)](https://travis-ci.org/appium/appium-android-driver)
[![Coverage Status](https://coveralls.io/repos/appium/appium-android-driver/badge.svg?branch=master)](https://coveralls.io/r/appium/appium-android-driver?branch=master)

appium-android-driver
Appium Android Driver
===================

Work in progress, stay tuned!
Appium Android Driver is a test automation tool for Android devices. Appium Android Driver automates native, hybrid and mobile web apps, tested on simulators, emulators and real devices. Appium Android Driver is part of the [Appium](https://github.com/appium/appium) mobile test automation tool.

## Installation
```
npm install appium-android-driver
```

## Usage
Import Android Driver, set [desired capabilities](http://appium.io/slate/en/1.5/?javascript#appium-server-capabilities) and create a session:

```
import { AndroidDriver } from `appium-android-driver`
let defaultCaps = {
app: 'path/to/your.apk',
deviceName: 'Android',
platformName: 'Android'
};
await driver.createSession(defaultCaps);
```
Run commands:
```
await driver.setOrientation('LANDSCAPE');
console.log(await driver.getOrientation()); // -> 'LANDSCAPE'
```

## Commands
| Command |
|----------------------------|
| `activateIMEEngine` |
| `availableIMEEngines` |
| `back` |
| `background` |
| `clear` |
| `click` |
| `complexTap` |
| `deactivateIMEEngine` |
| `defaultContextName` |
| `defaultWebviewName` |
| `doKey` |
| `doTouchAction` |
| `doTouchDrag` |
| `drag` |
| `elementDisplayed` |
| `elementEnabled` |
| `elementSelected` |
| `fakeFlick` |
| `fakeFlickElement` |
| `findElOrEls` |
| `fixRelease` |
| `flick` |
| `getActiveIMEEngine` |
| `getAlertText` |
| `getAttribute` |
| `getContexts` |
| `getCurrentActivity` |
| `getCurrentContext` |
| `getLocationInView` |
| `getLog` |
| `getLogTypes` |
| `getName` |
| `getNetworkConnection` |
| `getOrientation` |
| `getPageSource` |
| `getScreenshot` |
| `getSize` |
| `getStrings` |
| `getText` |
| `getWindowSize` |
| `hideKeyboard` |
| `installApp` |
| `isAppInstalled` |
| `isIMEActivated` |
| `isLocked` |
| `isWebContext` |
| `keyevent` |
| `keys` |
| `lock` |
| `longPressKeyCode` |
| `onChromedriverStop` |
| `openNotifications` |
| `openSettingsActivity` |
| `parseTouch` |
| `performGesture` |
| `performMultiAction` |
| `performTouch` |
| `pinchClose` |
| `pinchOpen` |
| `postAcceptAlert` |
| `postDismissAlert` |
| `pressKeyCode` |
| `pullFile` |
| `pullFolder` |
| `pushFile` |
| `removeApp` |
| `replaceValue` |
| `reset` |
| `setAlertText` |
| `setContext` |
| `setGeoLocation` |
| `setLocation` |
| `setNetworkConnection` |
| `setOrientation` |
| `setValue` |
| `startActivity` |
| `startChromedriverProxy` |
| `stopChromedriverProxies` |
| `suspendChromedriverProxy` |
| `swipe` |
| `tap` |
| `toggleData` |
| `toggleFlightMode` |
| `toggleLocationServices` |
| `toggleSetting` |
| `toggleWiFi` |
| `touchDown` |
| `touchLongClick` |
| `touchMove` |
| `touchUp` |
| `unlock` |
| `wrapBootstrapDisconnect` |


## Watch

Expand Down

0 comments on commit 894a8ef

Please sign in to comment.