mirror of
https://github.com/appium/appium.git
synced 2026-01-29 13:49:01 -06:00
update gitignore to track selendroid test
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -29,4 +29,4 @@ app/android/AndroidManifest.xml
|
||||
*~
|
||||
uiautomator/bootstrap/target/
|
||||
org.eclipse.ltk.core.refactoring.prefs
|
||||
selendroid
|
||||
/selendroid
|
||||
|
||||
28
test/functional/selendroid/basic.js
Normal file
28
test/functional/selendroid/basic.js
Normal 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();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user