selenium.webdriver.common.fedcm.dialog#

Classes

Dialog(driver)

Represents a FedCM dialog that can be interacted with.

class Dialog(driver)[source]#

Bases: object

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()[source]#

Gets the list of accounts shown in the dialog.

Return type:

list[Account]

select_account(index)[source]#

Selects an account from the dialog by index.

Parameters:

index (int)

Return type:

None

accept()[source]#

Clicks the continue button in the dialog.

Return type:

None

dismiss()[source]#

Cancels/dismisses the dialog.

Return type:

None