mirror of
https://github.com/appium/appium.git
synced 2026-10-24 09:45:38 +08:00
Merge pull request #572 from bootstraponline/master
Add scroll test and update submodules
This commit is contained in:
+1
-1
Submodule submodules/appium.io updated: 1934f0fb48...26e3175745
+1
-1
Submodule submodules/selendroid updated: 56581e27b4...a6567dcae3
@@ -10,6 +10,17 @@ var path = require('path')
|
||||
, should = require('should');
|
||||
|
||||
describeWd('mobile find', function(h) {
|
||||
it('should scroll to an element by text or content desc', function(done) {
|
||||
h.driver.execute("mobile: find", [["scroll",[[3, "views"]],[[7, "views"]]]], function(err, el) {
|
||||
should.not.exist(err);
|
||||
should.exist(el);
|
||||
el.text(function(err, text) {
|
||||
should.not.exist(err);
|
||||
text.should.eql("Views");
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
it('should find a single element by content-description', function(done) {
|
||||
h.driver.execute("mobile: find", [[[[7, "Animation"]]]], function(err, el) {
|
||||
should.not.exist(err);
|
||||
|
||||
Reference in New Issue
Block a user