mirror of
https://github.com/appium/appium.git
synced 2026-05-24 12:58:49 -05:00
19 lines
536 B
JavaScript
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();
|
|
});
|
|
});
|
|
});
|
|
});
|