grantPermissions
suspend fun grantPermissions(args: Browser.GrantPermissionsParameter, mode: CommandMode = CommandMode.DEFAULT)
Deprecated
Grant specific permissions to the given origin and reject all others. Deprecated. Use setPermission instead.
suspend fun grantPermissions(permissions: List<Browser.PermissionType>, origin: String? = null, browserContextId: String? = null)
Deprecated
Grant specific permissions to the given origin and reject all others. Deprecated. Use setPermission instead.
Parameters
permissions
No description
origin
Origin the permission applies to, all origins if not specified.
browserContextId
BrowserContext to override permissions. When omitted, default browser context is used.