selenium.webdriver.common.fedcm.dialog

Classes

Dialog(driver)

Represents a FedCM dialog that can be interacted with.

class selenium.webdriver.common.fedcm.dialog.Dialog(driver)[source]

Represents a FedCM dialog that can be interacted with.

DIALOG_TYPE_ACCOUNT_LIST = 'AccountChooser'
DIALOG_TYPE_AUTO_REAUTH = 'AutoReauthn'
property type: str | None

Gets the type of the dialog currently being shown.

property title: str

Gets the title of the dialog.

property subtitle: str | None

Gets the subtitle of the dialog.

get_accounts() List[Account][source]

Gets the list of accounts shown in the dialog.

select_account(index: int) None[source]

Selects an account from the dialog by index.

accept() None[source]

Clicks the continue button in the dialog.

dismiss() None[source]

Cancels/dismisses the dialog.