Files
appium/test/functional/testapp/location.js
T

19 lines
536 B
JavaScript

/*global it:true */
"use strict";
var describeWd = require("../../helpers/driverblock.js").describeForApp('TestApp')
, assert = require('assert');
describeWd('check location', function(h) {
return it('should return the right x/y coordinates', function(done) {
h.driver.elementByTagName('button', function(err, element) {
assert.ok(element.value);
element.getLocation(function(err, location) {
assert.equal(location.x, 94);
assert.equal(location.y, 122);
done();
});
});
});
});