ó
    ¼®iÕ  ã                   óX   • S SK Jr  S SKJr   " S S5      r " S S5      r " S S5      rg	)
é    )ÚOptional©Úcommand_builderc                   ó.   • \ rS rSrSrSrSrSr\\\1rSr	g)ÚUserPromptHandlerTypeé   z3Represents the behavior of the user prompt handler.ÚacceptÚdismissÚignore© N)
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__ÚACCEPTÚDISMISSÚIGNOREÚVALID_TYPESÚ__static_attributes__r   ó    ÚSC:\des-py\RoboSAPF\venv\Lib\site-packages\selenium\webdriver\common\bidi\session.pyr   r      s    † Ù=à€FØ€GØ€Fà˜7 FÐ+ƒKr   r   c                   ó†   • \ rS rSrSr      SS\\   S\\   S\\   S\\   S\\   S	\\   4S
 jjrS\\\4   4S jr	Sr
g)ÚUserPromptHandleré!   z8Represents the configuration of the user prompt handler.NÚalertÚbefore_unloadÚconfirmÚdefaultÚfileÚpromptc           	      óü   • SU4SU4SU4SU4SU4SU44 H@  u  pxUc  M
  U[         R                  ;  d  M   [        SU S	U S
[         R                   35      e   Xl        X l        X0l        X@l        XPl        X`l        g)a–  Initialize UserPromptHandler.

Parameters:
-----------
    alert: Handler type for alert prompts
    before_unload: Handler type for beforeUnload prompts
    confirm: Handler type for confirm prompts
    default: Default handler type for all prompts
    file: Handler type for file picker prompts
    prompt: Handler type for prompt dialogs

Raises:
------
    ValueError: If any handler type is not valid
r   r   r   r   r    r!   NzInvalid z handler type: z. Must be one of )	r   r   Ú
ValueErrorr   r   r   r   r    r!   )	Úselfr   r   r   r   r    r!   Ú
field_nameÚvalues	            r   Ú__init__ÚUserPromptHandler.__init__$   s¥   € ð2 �eÐØ˜mÐ,Ø˜Ð Ø˜Ð Ø�TˆNØ�vÐó"
ÑˆJð Ó  UÔ2G×2SÑ2SÕ%SÜ Ø˜z˜l¨/¸%¸Ð@QÔRg×RsÑRsÐQtÐuóð ñ"
ð Œ
Ø*ÔØŒØŒØŒ	Ø�r   Úreturnc                 óv   • SSSSSSS.n0 nUR                  5        H  u  p4[        X5      nUc  M  XRU'   M     U$ )zœConvert the UserPromptHandler to a dictionary for BiDi protocol.

Returns:
-------
    Dict[str, str]: Dictionary representation suitable for BiDi protocol
r   ÚbeforeUnloadr   r   r    r!   ©r   r   r   r   r    r!   )ÚitemsÚgetattr)r$   Úfield_mappingÚresultÚ	attr_nameÚdict_keyr&   s         r   Úto_dictÚUserPromptHandler.to_dictP   sY   € ð Ø+Ø Ø ØØñ
ˆð ˆØ#0×#6Ñ#6Ö#8ÑˆIÜ˜DÓ,ˆEØÓ Ø#(�xÓ ñ $9ð ˆr   r,   )NNNNNN)r   r   r   r   r   r   Ústrr'   Údictr3   r   r   r   r   r   r   !   s…   † ÙBð  $Ø'+Ø!%Ø!%Ø"Ø $ñ*à˜‰}ð*ð   ‘}ð*ð ˜#‘ð	*ð
 ˜#‘ð*ð �s‰mð*ð ˜‘õ*ðX˜˜c 3˜h™÷ r   r   c                   ó<   • \ rS rSrS rSS.S jrSS.S jrS rSrg)	ÚSessionéh   c                 ó   • Xl         g )N©Úconn)r$   r<   s     r   r'   ÚSession.__init__i   s   € Ø�	r   N)Úbrowsing_contextsc                óB   • SU0nUc  / nU(       a  XS'   [        SU5      $ )NÚeventsÚbrowsingContextszsession.subscriber   ©r$   r>   r@   Úparamss       r   Ú	subscribeÚSession.subscribel   s6   € à�fð
ˆð Ñ$Ø "ÐÞØ):Ð%Ñ&ÜÐ2°FÓ;Ð;r   c                óB   • SU0nUc  / nU(       a  XS'   [        SU5      $ )Nr@   rA   zsession.unsubscriber   rB   s       r   ÚunsubscribeÚSession.unsubscribev   s6   € à�fð
ˆð Ñ$Ø "ÐÞØ):Ð%Ñ&ÜÐ4°fÓ=Ð=r   c                 óP   • [        S0 5      nU R                  R                  U5      $ )zý
The session.status command returns information about the remote end's readiness
to create new sessions and may include implementation-specific metadata.

Returns
-------
dict
    Dictionary containing the ready state (bool), message (str) and metadata
zsession.status)r   r<   Úexecute)r$   Úcmds     r   ÚstatusÚSession.status€   s&   € ô Ð.°Ó3ˆØ�y‰y× Ñ  Ó%Ð%r   r;   )	r   r   r   r   r'   rD   rG   rL   r   r   r   r   r8   r8   h   s    † òð 48õ <ð 6:õ >õ&r   r8   N)Útypingr   Ú%selenium.webdriver.common.bidi.commonr   r   r   r8   r   r   r   Ú<module>rP      s.   ðõ$ å A÷,ñ ,÷Dñ D÷N#&ò #&r   