Package org.openqa.selenium.safari
Interface HasPermissions
-
- All Known Implementing Classes:
SafariDriver
@Beta public interface HasPermissions
Used by classes to indicate that they can take adjust permissions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Boolean>
getPermissions()
void
setPermissions(java.lang.String permission, boolean value)
Set permission on the browser.
-
-
-
Method Detail
-
setPermissions
void setPermissions(java.lang.String permission, boolean value)
Set permission on the browser. The only supported permission at this time is "getUserMedia".- Parameters:
permission
- the name of the item to set permission on.value
- whether the permission has been granted.
-
getPermissions
java.util.Map<java.lang.String,java.lang.Boolean> getPermissions()
- Returns:
- each permission and whether it is allowed or not.
-
-