Returns the list of credentials owned by the authenticator.
(self)
| 1767 | |
| 1768 | @_required_virtual_authenticator |
| 1769 | def get_credentials(self) -> list[Credential]: |
| 1770 | """Returns the list of credentials owned by the authenticator.""" |
| 1771 | from selenium.webdriver.common.virtual_authenticator import Credential |
| 1772 | |
| 1773 | credential_data = self.execute(Command.GET_CREDENTIALS, {"authenticatorId": self._authenticator_id}) |
| 1774 | return [Credential.from_dict(credential) for credential in credential_data["value"]] |
| 1775 | |
| 1776 | @_required_virtual_authenticator |
| 1777 | def remove_credential(self, credential_id: str | bytearray) -> None: |