zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
U
\±dÜã@s|ddlmZerRddlZejdkr0ddlmZn ddlmZGdd„deddZndd    lmZeee    fZGd
d „d ƒZ
dS) é)Ú TYPE_CHECKINGN)éé)Ú    TypedDictc@s&eZdZUeed<eed<eed<dS)Ú JSONTimeoutsÚimplicitÚpageLoadÚscriptN)Ú__name__Ú
__module__Ú __qualname__ÚintÚ__annotations__©rrúYd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\selenium/webdriver/common/timeouts.pyrs
rF)Útotal)ÚDictc@s¸eZdZdeeeddœdd„Zeedœdd„ƒZejedd    œd
d„ƒZeedœd d „ƒZejedd œdd „ƒZeedœdd„ƒZ    e    jeddœdd„ƒZ    ee
dœdd„Z e dœdd„Z dS)ÚTimeoutsrN)Ú implicit_waitÚ    page_loadr    ÚreturncCs(| |¡|_| |¡|_| |¡|_dS)a¼Create a new Timeout object.
 
        :Args:
         - implicit_wait - Either an int or a float. The number passed in needs to how many
            seconds the driver will wait.
         - page_load - Either an int or a float. The number passed in needs to how many
            seconds the driver will wait.
         - script - Either an int or a float. The number passed in needs to how many
            seconds the driver will wait.
        N)Ú_convertÚ_implicit_waitÚ
_page_loadÚ_script)Úselfrrr    rrrÚ__init__)s  zTimeouts.__init__)rcCs
|jdS)zjReturn the value for the implicit wait.
 
        This does not return the value on the remote end
        éè)r©rrrrr8szTimeouts.implicit_wait)rrcCs| |¡|_dS)zeSets the value for the implicit wait.
 
        This does not set the value on the remote end
        N)rr)rrrrrr@scCs
|jdS)zkReturn the value for the page load wait.
 
        This does not return the value on the remote end
        r)rrrrrrHszTimeouts.page_load)rrcCs| |¡|_dS)zfSets the value for the page load wait.
 
        This does not set the value on the remote end
        N)rr)rrrrrrPscCs
|jdS)zhReturn the value for the script wait.
 
        This does not return the value on the remote end
        r)rrrrrr    XszTimeouts.script)rrcCs| |¡|_dS)zcSets the value for the script wait.
 
        This does not set the value on the remote end
        N)rr)rrrrrr    `s)ÚtimeoutrcCs*t|ttfƒrtt|ƒdƒStdƒ‚dS)Nrz&Timeouts can only be an int or a float)Ú
isinstancer ÚfloatÚ    TypeError)rrrrrrhszTimeouts._convertcCs8i}|jr|j|d<|jr$|j|d<|jr4|j|d<|S)Nrrr    )rrr)rZtimeoutsrrrÚ_to_jsonms
 
 
zTimeouts._to_json)rrr)r
r r r!rÚpropertyrÚsetterrr    r rrr#rrrrr(sr) ÚtypingrÚsysÚ version_inforZtyping_extensionsrrÚstrr rrrrrÚ<module>s