grantPermissions
suspend fun grantPermissions(args: Browser.GrantPermissionsParameter, mode: CommandMode = CommandMode.DEFAULT)
Grant specific permissions to the given origin and reject all others.
suspend fun grantPermissions(permissions: List<Browser.PermissionType>, origin: String? = null, browserContextId: String? = null)
Grant specific permissions to the given origin and reject all others.
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.