
    /_i
                     $    d dl mZ  G d d      Zy)    )Commandc                       e Zd ZddZedefd       Zededz  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     ^/var/www/html/land_sniper/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.accept2   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.dismiss6   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_cooldownB   s    W99:r   )r   N)__name__
__module____qualname__r   propertystrr   r   r   listdictr   intr"   r'   r*   r/   r1   r4    r   r   r   r      s     Ss S S V#* V V PS P P Qd4j Q QTC TD Tm:IJ;r   r   N)!selenium.webdriver.remote.commandr   r   r=   r   r   <module>r?      s   & 6.; .;r   