webdriverio-workflo
Version:
This is a customized version of webdriverio for use with workflo framework.
38 lines (35 loc) • 863 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
/**
*
* Get the current geolocation.
*
* <example>
:getGeoLocation.js
it('should return my current location', function () {
var location = browser.getGeoLocation()
console.log(location)
// outputs:
// {
// latitude: 51.1045407,
// longitude: 13.2017384,
// altitude: 20.23345
// }
})
* </example>
*
* @alias browser.getGeoLocation
* @return {Object} the current geo location (`{latitude: number, longitude: number, altitude: number}`)
* @uses protocol/location
* @type mobile
*
*/
var getGeoLocation = function getGeoLocation() {
return this.unify(this.location(), {
extractValue: true
});
};
exports.default = getGeoLocation;
module.exports = exports["default"];
;