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 settinsg 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'
});