MCPcopy
hub / github.com/SeleniumHQ/selenium / setPermission

Method setPermission

javascript/selenium-webdriver/chromium.js:757–761  ·  view source on GitHub ↗

* Set a permission state to the given value. * * @param {string} name A name of the permission to update. * @param {("granted"|"denied"|"prompt")} state State to set permission to. * @returns {!Promise } A promise that will be resolved when the * command has finished. *

(name, state)

Source from the content-addressed store, hash-verified

755 * names
756 */
757 setPermission(name, state) {
758 return this.execute(
759 new command.Command(Command.SET_PERMISSION).setParameter('descriptor', { name }).setParameter('state', state),
760 )
761 }
762
763 /**
764 * Sends a DevTools command to change the browser's download directory.

Callers

nothing calls this directly

Calls 2

setParameterMethod · 0.80
executeMethod · 0.65

Tested by

no test coverage detected