Interface HasFederatedCredentialManagement
Used by classes to indicate that they can interact with FedCM dialogs.
-
Method Summary
Modifier and TypeMethodDescriptionGets the currently open FedCM dialog, or null if there is no dialog.void
Resets the FedCM dialog cooldown.void
setDelayEnabled
(boolean enabled) Disables the promise rejection delay.
-
Method Details
-
setDelayEnabled
void setDelayEnabled(boolean enabled) Disables the promise rejection delay.FedCM by default delays promise resolution in failure cases for privacy reasons (https://w3c-fedid.github.io/FedCM/#ref-for-setdelayenabled); this function allows turning it off to let tests run faster where this is not relevant.
-
resetCooldown
void resetCooldown()Resets the FedCM dialog cooldown.If a user agent triggers a cooldown when the account chooser is dismissed, this function resets that cooldown so that the dialog can be triggered again immediately.
-
getFederatedCredentialManagementDialog
FederatedCredentialManagementDialog getFederatedCredentialManagementDialog()Gets the currently open FedCM dialog, or null if there is no dialog.Can be used with WebDriverWait like: wait.until(driver -> ((HasFederatedCredentialManagement) driver). getFederatedCredentialManagementDialog() != null);
-