diff --git a/py/selenium/webdriver/common/fedcm/account.py b/py/selenium/webdriver/common/fedcm/account.py index d08bd3b76d847..82ad0f2269f9a 100644 --- a/py/selenium/webdriver/common/fedcm/account.py +++ b/py/selenium/webdriver/common/fedcm/account.py @@ -32,7 +32,7 @@ def __get__(self, obj, cls) -> Optional[str]: return obj._account_data.get(self.name) def __set__(self, obj, value) -> None: - raise AttributeError(f"Cannot set readonly attribute") + raise AttributeError(f"Cannot set readonly attribute") class Account: @@ -41,6 +41,17 @@ class Account: See: https://w3c-fedid.github.io/FedCM/#dictdef-identityprovideraccount https://w3c-fedid.github.io/FedCM/#webdriver-accountlist """ + + account_id = _AccountDescriptor("accountId") + email = _AccountDescriptor("email") + name = _AccountDescriptor("name") + given_name = _AccountDescriptor("givenName") + picture_url = _AccountDescriptor("pictureUrl") + idp_config_url = _AccountDescriptor("idpConfigUrl") + terms_of_service_url = _AccountDescriptor("termsOfServiceUrl") + privacy_policy_url = _AccountDescriptor("privacyPolicyUrl") + login_state = _AccountDescriptor("loginState") + account_id = _AccountDescriptor("accountId") email = _AccountDescriptor("email") name = _AccountDescriptor("name")