
    >fh
                     0    d dl mZ d dlmZ  G d d      Zy)    )Optional)Commandc                       e Zd ZddZedefd       Zedee   fd       Zedefd       Z	ede
e   fd       Zdeddfd	Zdd
ZddZddZddZddZy)FedCMreturnNc                     || _         y )N)_driver)selfdrivers     R/var/www/zara/venv/lib/python3.12/site-packages/selenium/webdriver/remote/fedcm.py__init__zFedCM.__init__   s	        c                 x    | j                   j                  t        j                        d   j	                  d      S )zGets the title of the dialog.valuetitler	   executer   GET_FEDCM_TITLEgetr
   s    r   r   zFedCM.title   s/     ||##G$;$;<WEII'RRr   c                 x    | j                   j                  t        j                        d   j	                  d      S )z Gets the subtitle of the dialog.r   subtitler   r   s    r   r   zFedCM.subtitle    s/     ||##G$;$;<WEII*UUr   c                 r    | j                   j                  t        j                        j	                  d      S )z2Gets the type of the dialog currently being shown.r   )r	   r   r   GET_FEDCM_DIALOG_TYPEr   r   s    r   dialog_typezFedCM.dialog_type%   s*     ||##G$A$ABFFwOOr   c                 r    | j                   j                  t        j                        j	                  d      S )z.Gets the list of accounts shown in the dialog.r   )r	   r   r   GET_FEDCM_ACCOUNT_LISTr   r   s    r   account_listzFedCM.account_list*   s*     ||##G$B$BCGGPPr   indexc                 \    | j                   j                  t        j                  d|i       y)z,Selects an account from the dialog by index.accountIndexN)r	   r   r   SELECT_FEDCM_ACCOUNT)r
   r   s     r   select_accountzFedCM.select_account/   s!    W99NE;RSr   c                 \    | j                   j                  t        j                  ddi       y)z)Clicks the continue button in the dialog.dialogButtonConfirmIdpLoginContinueN)r	   r   r   CLICK_FEDCM_DIALOG_BUTTONr   s    r   acceptzFedCM.accept3   s"    W>>Qj@klr   c                 V    | j                   j                  t        j                         y)z#Cancels/dismisses the FedCM dialog.N)r	   r   r   CANCEL_FEDCM_DIALOGr   s    r   dismisszFedCM.dismiss7   s    W889r   c                 \    | j                   j                  t        j                  ddi       y)z1Re-enables the promise rejection delay for FedCM.enabledTNr	   r   r   SET_FEDCM_DELAYr   s    r   enable_delayzFedCM.enable_delay;   s!    W44y$6GHr   c                 \    | j                   j                  t        j                  ddi       y)z/Disables the promise rejection delay for FedCM.r-   FNr.   r   s    r   disable_delayzFedCM.disable_delay?   s!    W44y%6HIr   c                 V    | j                   j                  t        j                         y)z@Resets the FedCM dialog cooldown, allowing immediate retriggers.N)r	   r   r   RESET_FEDCM_COOLDOWNr   s    r   reset_cooldownzFedCM.reset_cooldownC   s    W99:r   )r   N)__name__
__module____qualname__r   propertystrr   r   r   r   listdictr   intr#   r(   r+   r0   r2   r5    r   r   r   r      s     Ss S S V(3- V V PS P P Qd4j Q QTC TD Tm:IJ;r   r   N)typingr   !selenium.webdriver.remote.commandr   r   r>   r   r   <module>rA      s   $  5.; .;r   