location

Protocol bindings for all geolocation operations.

This command is deprecated and will be removed soon. Make sure you don’t use it in your automation/test scripts anymore to avoid errors.

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) { ... });
});

Returns

  • <Object>: the current geo location