o
    é\h¸
  ã                   @   s.   d dl mZmZ ddlmZ G dd„ dƒZdS )é    )ÚListÚOptionalé   )ÚCommandc                   @   sª   e Zd Zddd„Zedefdd„ƒZedee fdd„ƒZedefd	d
„ƒZ	ede
e fdd„ƒZdeddfdd„Zddd„Zddd„Zddd„Zddd„Zddd„ZdS )ÚFedCMÚreturnNc                 C   s
   || _ d S )N)Ú_driver)ÚselfÚdriver© r   úb/home/air/segue/gemini/backup/venv/lib/python3.10/site-packages/selenium/webdriver/remote/fedcm.pyÚ__init__   s   
zFedCM.__init__c                 C   ó   | j  tj¡d  d¡S )zGets the title of the dialog.ÚvalueÚtitle©r   Úexecuter   ÚGET_FEDCM_TITLEÚget©r	   r   r   r   r      ó   zFedCM.titlec                 C   r   )z Gets the subtitle of the dialog.r   Úsubtitler   r   r   r   r   r       r   zFedCM.subtitlec                 C   ó   | j  tj¡ d¡S )z2Gets the type of the dialog currently being shown.r   )r   r   r   ÚGET_FEDCM_DIALOG_TYPEr   r   r   r   r   Údialog_type%   ó   zFedCM.dialog_typec                 C   r   )z.Gets the list of accounts shown in the dialog.r   )r   r   r   ÚGET_FEDCM_ACCOUNT_LISTr   r   r   r   r   Úaccount_list*   r   zFedCM.account_listÚindexc                 C   s   | j  tjd|i¡ dS )z,Selects an account from the dialog by index.ÚaccountIndexN)r   r   r   ÚSELECT_FEDCM_ACCOUNT)r	   r   r   r   r   Úselect_account/   ó   zFedCM.select_accountc                 C   ó   | j  tjddi¡ dS )z)Clicks the continue button in the dialog.ÚdialogButtonÚConfirmIdpLoginContinueN)r   r   r   ÚCLICK_FEDCM_DIALOG_BUTTONr   r   r   r   Úaccept3   r"   zFedCM.acceptc                 C   ó   | j  tj¡ dS )z#Cancels/dismisses the FedCM dialog.N)r   r   r   ÚCANCEL_FEDCM_DIALOGr   r   r   r   Údismiss7   ó   zFedCM.dismissc                 C   r#   )z1Re-enables the promise rejection delay for FedCM.ÚenabledTN©r   r   r   ÚSET_FEDCM_DELAYr   r   r   r   Úenable_delay;   r"   zFedCM.enable_delayc                 C   r#   )z/Disables the promise rejection delay for FedCM.r,   FNr-   r   r   r   r   Údisable_delay?   r"   zFedCM.disable_delayc                 C   r(   )z@Resets the FedCM dialog cooldown, allowing immediate retriggers.N)r   r   r   ÚRESET_FEDCM_COOLDOWNr   r   r   r   Úreset_cooldownC   r+   zFedCM.reset_cooldown)r   N)Ú__name__Ú
__module__Ú__qualname__r   ÚpropertyÚstrr   r   r   r   r   Údictr   Úintr!   r'   r*   r/   r0   r2   r   r   r   r   r      s     




r   N)Útypingr   r   Úcommandr   r   r   r   r   r   Ú<module>   s   