Merge pull request #1077 from bootstraponline/ios_id

Add id support on iOS
This commit is contained in:
bootstraponline
2013-09-03 12:31:10 -07:00
2 changed files with 43 additions and 2 deletions
+10
View File
@@ -6,6 +6,16 @@ var describeWd = require("../../helpers/driverblock.js").describeForApp('UICatal
, spinWait = require("../../helpers/spin.js").spinWait
, should = require('should');
describeWd('find by id', function(h) {
it('should find a single element by id', function(done) {
// ButtonsExplain: 'Various uses of UIButton'
h.driver.elementById('ButtonsExplain', function(err, els) {
should.not.exist(err);
done();
});
});
});
describeWd('findElementNameContains', function(h) {
it('should find a single element by name', function(done) {
h.driver.execute("mobile: findElementNameContains", [{name: 'uses of UIButton'}], function(err, el) {