* 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)
| 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. |
nothing calls this directly
no test coverage detected