location

Protocol bindings for all geolocation operations. (Not part of the official Webdriver specification).

Usage

1
browser.location(location);

Parameters

Param Type Details
location Object the new location

Example

location.js
1
2
3
4
5
6
7
it('should set geo location for device', function () {
// set the current geo location
client.location({latitude: 121.21, longitude: 11.56, altitude: 94.23})

// get the current geo location
client.location().then(function(res) { ... });
});