
    'h                     v    S SK Jr  \(       a  S SK Jr   " S S\SS9rO\\\4   r " S S5      r " S	 S
5      rg)    )TYPE_CHECKING)	TypedDictc                   4    \ rS rSr% \\S'   \\S'   \\S'   Srg)JSONTimeouts   implicitpageLoadscript N)__name__
__module____qualname____firstlineno__int__annotations____static_attributes__r       k/var/www/home/psychics-availability/venv/lib/python3.13/site-packages/selenium/webdriver/common/timeouts.pyr   r      s    r   r   F)totalc                   6    \ rS rSrSrS rS\4S jrS	S jrSr	g)
_TimeoutsDescriptor    zGet or set the value of the attributes listed below.

_implicit_wait _page_load _script

This does not set the value on the remote end.
c                     Xl         g )Nname)selfr   s     r   __init___TimeoutsDescriptor.__init__(   s    	r   returnc                 2    [        XR                  5      S-  $ )N  )getattrr   )r   objclss      r   __get___TimeoutsDescriptor.__get__+   s    sII&--r   Nc                 T    [        US5      " U5      n[        XR                  U5        g )N_convert)r"   setattrr   )r   r#   valueconverted_values       r   __set___TimeoutsDescriptor.__set__.   s!    !#z259YY0r   r   )r   N)
r   r   r   r   __doc__r   floatr%   r,   r   r   r   r   r   r       s    .5 .1r   r   c            	           \ rS rSrSS\S\S\SS4S jjr\" S5      r \" S	5      r \" S
5      r	 S\S\
4S jrS\4S jrSrg)Timeouts3   implicit_wait	page_loadr
   r   Nc                     U R                  U5      U l        U R                  U5      U l        U R                  U5      U l        g)a  Create a new Timeouts object.

This implements https://w3c.github.io/webdriver/#timeouts.

:Args:
 - implicit_wait - Either an int or a float. Set how many
    seconds to wait when searching for elements before
    throwing an error.
 - page_load - Either an int or a float. Set how many seconds
    to wait for a page load to complete before throwing
    an error.
 - script - Either an int or a float. Set how many seconds to
    wait for an asynchronous script to finish execution
    before throwing an error.
N)r(   _implicit_wait
_page_load_script)r   r3   r4   r
   s       r   r   Timeouts.__init__4   s5    " #mmM:--	2}}V,r   r6   r7   r8   timeoutc                 |    [        U[        [        45      (       a  [        [        U5      S-  5      $ [        S5      e)Nr!   z&Timeouts can only be an int or a float)
isinstancer   r/   	TypeError)r   r:   s     r   r(   Timeouts._convert~   s3    gU|,,uW~,--@AAr   c                     0 nU R                   (       a  U R                   US'   U R                  (       a  U R                  US'   U R                  (       a  U R                  US'   U$ )Nr   r	   r
   r6   r7   r8   )r   timeoutss     r   _to_jsonTimeouts._to_json   sO    !##'#6#6HZ ??#'??HZ <<!%HXr   r@   )r   r   r   )r   r   r   r   r/   r   r   r3   r4   r
   r   r(   r   rB   r   r   r   r   r1   r1   3   sz    -e -E -u -]a -, ((89M  $L1I  !+F"B B# B
	, 	r   r1   N)	typingr   r   r   dictstrr   r   r1   r   r   r   <module>rG      sC   $ ! y  S>L1 1&Y Yr   