add AndroidDriver

This commit is contained in:
Jonah Stiennon
2015-08-10 17:25:53 -07:00
parent 1fd52f97d9
commit bfcd32f9ad
2 changed files with 6 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ import _ from 'lodash';
import log from './logger';
import { BaseDriver } from 'appium-base-driver';
import { FakeDriver } from 'appium-fake-driver';
import { AndroidDriver } from 'appium-android-driver';
import { routeConfiguringFunction, errors,
isSessionCommand } from 'mobile-json-wire-protocol';
@@ -23,6 +24,10 @@ class AppiumDriver extends BaseDriver {
if (caps.platformName.toLowerCase() === "fake") {
return FakeDriver;
}
if (caps.platformName.toLowerCase() === 'android') {
return AndroidDriver;
}
throw new Error("Could not find a driver for those caps");
}

View File

@@ -35,6 +35,7 @@
"doc": "./docs"
},
"dependencies": {
"appium-android-driver": "^0.0.1",
"appium-base-driver": "^0.1.0",
"appium-express": "0.0.1",
"appium-fake-driver": "^0.1.0",