update gitignore to track selendroid test

This commit is contained in:
Jonathan Lipps
2013-04-12 10:15:36 -07:00
parent 82ba0fe61f
commit e1d7102499
2 changed files with 29 additions and 1 deletions

2
.gitignore vendored
View File

@@ -29,4 +29,4 @@ app/android/AndroidManifest.xml
*~
uiautomator/bootstrap/target/
org.eclipse.ltk.core.refactoring.prefs
selendroid
/selendroid

View File

@@ -0,0 +1,28 @@
/*global it:true */
"use strict";
var path = require('path')
, appPath = path.resolve(__dirname, "../../../sample-code/apps/ApiDemos/bin/ApiDemos-debug.apk")
, appPkg = "com.example.android.apis"
, appAct = "ApiDemos"
, driverBlock = require("../../helpers/driverblock.js")
, describeWd = driverBlock.describeForApp(appPath, "selendroid", appPkg, appAct)
, should = require('should');
describeWd('basic', function(h) {
it('should find and click an element', function(done) {
h.driver.elementByName('Accessibility', function(err, el) {
should.not.exist(err);
should.exist(el);
el.click(function(err) {
should.not.exist(err);
h.driver.elementByLinkText("Accessibility Node Provider", function(err, el) {
should.not.exist(err);
should.exist(el);
done();
});
});
});
});
});