mirror of
https://github.com/appium/appium.git
synced 2026-02-05 00:58:56 -06:00
fix tests for use of api level 18 emulator
This commit is contained in:
@@ -132,7 +132,7 @@ describeWd('find element(s)', function(h) {
|
||||
it('should find multiple elements by resource-id', function(done) {
|
||||
h.driver.elementsById('android:id/text1', function(err, els) {
|
||||
should.not.exist(err);
|
||||
els.length.should.equal(11);
|
||||
els.length.should.equal(10);
|
||||
done();
|
||||
});
|
||||
});
|
||||
@@ -261,11 +261,3 @@ describeWd('unallowed tag names', function(h) {
|
||||
});
|
||||
});
|
||||
|
||||
describeWd('mobile xmlKeyContains', function(h) {
|
||||
it('should not error on xmlKeyContains', function(done) {
|
||||
h.driver.execute("mobile: xmlKeyContains", [''], function(err, el) {
|
||||
should.not.exist(err);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -16,7 +16,7 @@ describeWd('get source', function(h) {
|
||||
should.not.exist(err);
|
||||
should.ok(obj);
|
||||
obj.hierarchy.node['@class'].should.equal("android.widget.FrameLayout");
|
||||
obj.hierarchy.node.node.node[0].node['@class'].should.equal("android.view.View");
|
||||
obj.hierarchy.node.node.node[0].node['@class'].should.equal("android.widget.FrameLayout");
|
||||
done();
|
||||
});
|
||||
});
|
||||
@@ -28,7 +28,7 @@ describeWd('get source', function(h) {
|
||||
should.not.exist(err);
|
||||
should.ok(obj);
|
||||
obj.hierarchy.node['@class'].should.equal("android.widget.FrameLayout");
|
||||
obj.hierarchy.node.node.node[0].node['@class'].should.equal("android.view.View");
|
||||
obj.hierarchy.node.node.node[0].node['@class'].should.equal("android.widget.FrameLayout");
|
||||
h.driver.execute("mobile: find", [[[[7, "Animation"]]]], function(err, el) {
|
||||
should.not.exist(err);
|
||||
done();
|
||||
|
||||
@@ -92,4 +92,11 @@ describeWd('web view', function(h) {
|
||||
done();
|
||||
});
|
||||
});
|
||||
it('should get web source', function(done) {
|
||||
h.driver.source(function(err, source) {
|
||||
should.not.exist(err);
|
||||
source.should.include("body");
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user