View Source Improve this doc

settings

Either retrieve a JSON hash of all the currently specified settings or update the current setting on the device.

Usage

1
browser.settings([settings]);

Parameters

Param Type Details
settings
optional
Object key/value pairs defining settings on the device

Example

settings.js
1
2
3
4
5
6
7
8
it('should update/get settings on the device', function () {
// update setting on the device
browser.settings({ cyberdelia: 'open' });

// get current settings
var settings = browser.settings()
console.log(settings.cyberdelia); // returns 'open'
});

Returns

  • <Object>: current settings (only if method was called without parameters)