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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
U
[±dgã@sîddlmZddlmZmZddlmZddlZddlZddl    m
Z
eGdd„dƒƒZ eGd    d
„d
ƒƒZ eGd d „d ƒƒZ d dœdd„Zdddœdd„Zddœdd„Zdddœdd„ZedƒeGdd„dƒƒƒZedƒeGd d!„d!ƒƒƒZdS)"é)Ú annotationsé)Ú event_classÚ T_JSON_DICT)Ú    dataclassN)Úpagec@s>eZdZUdZded<ded<ded<dd„Zed    d
„ƒZd S) ÚApplicationCacheResourcez:
    Detailed application cache resource information.
    ÚstrÚurlÚintÚsizeÚtype_cCs(tƒ}|j|d<|j|d<|j|d<|S)Nr
r Útype)Údictr
r r ©ÚselfÚjson©rúod:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\selenium/webdriver/common/devtools/v85/application_cache.pyÚto_jsons
 
 
 
z ApplicationCacheResource.to_jsoncCs&|t|dƒt|dƒt|dƒdS)Nr
r r)r
r r )r    r ©ÚclsrrrrÚ    from_json$s
 
 
 
ýz"ApplicationCacheResource.from_jsonN©Ú__name__Ú
__module__Ú __qualname__Ú__doc__Ú__annotations__rÚ classmethodrrrrrrs
rc@sNeZdZUdZded<ded<ded<ded<ded    <d
d „Zed d „ƒZdS)ÚApplicationCachez1
    Detailed application cache information.
    r    Ú manifest_urlÚfloatr Ú creation_timeÚ update_timez%typing.List[ApplicationCacheResource]Ú    resourcescCsFtƒ}|j|d<|j|d<|j|d<|j|d<dd„|jDƒ|d<|S)NÚ manifestURLr Ú creationTimeÚ
updateTimecSsg|] }| ¡‘qSr)r©Ú.0ÚirrrÚ
<listcomp>Gsz,ApplicationCache.to_json.<locals>.<listcomp>r%)rr!r r#r$r%rrrrrAs
 
 
 
zApplicationCache.to_jsoncCs@|t|dƒt|dƒt|dƒt|dƒdd„|dDƒdS)    Nr&r r'r(cSsg|]}t |¡‘qSr)rrr)rrrr,Qsz.ApplicationCache.from_json.<locals>.<listcomp>r%)r!r r#r$r%)r    r"rrrrrJs
 
 
 
ûzApplicationCache.from_jsonNrrrrrr -s
    r c@s>eZdZUdZded<ded<ded<dd    „Zed
d „ƒZd S) ÚFrameWithManifestz/
    Frame identifier - manifest URL pair.
    ú page.FrameIdÚframe_idr    r!r ÚstatuscCs,tƒ}|j ¡|d<|j|d<|j|d<|S)NÚframeIdr&r0)rr/rr!r0rrrrrcs
 
 
zFrameWithManifest.to_jsoncCs*|tj |d¡t|dƒt|dƒdS©Nr1r&r0)r/r!r0©rZFrameIdrr    r rrrrrjs
 
 
ýzFrameWithManifest.from_jsonNrrrrrr-Us
r-z0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])Úreturnccsddi}|V}dS)z9
    Enables application cache domain notifications.
    ÚmethodzApplicationCache.enableNr©Úcmd_dictrrrrÚenablessÿr8r.z<typing.Generator[T_JSON_DICT, T_JSON_DICT, ApplicationCache])r/r4ccs0tƒ}| ¡|d<d|dœ}|V}t |d¡S)a    
    Returns relevant application cache data for the document in given frame.
 
    :param frame_id: Identifier of the frame containing document whose application cache is retrieved.
    :returns: Relevant application cache data for the document in given frame.
    r1z,ApplicationCache.getApplicationCacheForFrame©r5ÚparamsZapplicationCache)rrr r©r/r:r7rrrrÚget_application_cache_for_frame}s     þr<zJtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[FrameWithManifest]]ccs ddi}|V}dd„|dDƒS)a
    Returns array of frame identifiers with manifest urls for each frame containing a document
    associated with some application cache.
 
    :returns: Array of frame identifiers with manifest urls for each frame containing a document associated with some application cache.
    r5z'ApplicationCache.getFramesWithManifestscSsg|]}t |¡‘qSr)r-rr)rrrr,›sz-get_frames_with_manifests.<locals>.<listcomp>ZframeIdsrr6rrrÚget_frames_with_manifestss
ÿr=z/typing.Generator[T_JSON_DICT, T_JSON_DICT, str]ccs.tƒ}| ¡|d<d|dœ}|V}t|dƒS)zÚ
    Returns manifest URL for document in the given frame.
 
    :param frame_id: Identifier of the frame containing document whose manifest is retrieved.
    :returns: Manifest URL for document in the given frame.
    r1z$ApplicationCache.getManifestForFramer9r&)rrr    r;rrrÚget_manifest_for_framežs     þr>z.ApplicationCache.applicationCacheStatusUpdatedc@s:eZdZUded<ded<ded<edddœd    d
„ƒZd S) ÚApplicationCacheStatusUpdatedr.r/r    r!r r0r©rr4cCs*|tj |d¡t|dƒt|dƒdSr2r3rrrrr»s
 
 
ýz'ApplicationCacheStatusUpdated.from_jsonN©rrrrrrrrrrr?±s
 
r?z$ApplicationCache.networkStateUpdatedc@s*eZdZUded<edddœdd„ƒZdS)ÚNetworkStateUpdatedÚboolÚ is_now_onlinerr@cCs|t|dƒdS)NZ isNowOnline)rD)rCrrrrrÉs
ÿzNetworkStateUpdated.from_jsonNrArrrrrBÄs
rB)Ú
__future__rÚutilrrZ dataclassesrÚenumÚtypingÚrrr r-r8r<r=r>r?rBrrrrÚ<module>s*   '