zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
U
[±dPÄã    @sddlmZddlmZmZddlmZddlZddlZddl    m
Z
ddl    m Z ddl    m Z eGd    d
„d
ƒƒZ eGd d „d ƒƒZeGd d„dƒƒZeGdd„dƒƒZeGdd„dƒƒZeGdd„dƒƒZGdd„dejƒZeGdd„dƒƒZGdd„dejƒZeGdd„dƒƒZeGdd„dƒƒZeGdd „d ƒƒZeGd!d"„d"ƒƒZeGd#d$„d$ƒƒZeGd%d&„d&ƒƒZeGd'd(„d(ƒƒZeGd)d*„d*ƒƒZeGd+d,„d,ƒƒZGd-d.„d.ejƒZ d/d0œd1d2„Z!d/d0œd3d4„Z"dœd5d6d6d7d6d8d9œd:d;„Z#d<d8d=œd>d?„Z$d5d8d@œdAdB„Z%d/d0œdCdD„Z&ddEdFdFd/dGœdHdI„Z'džddJdKdLdMd/dNœdOdP„Z(dŸdQdFdFd/dRœdSdT„Z)d dUdUdUdUdFdFd/dVœdWdX„Z*d¡d
dJdKdLd/dYœdZd[„Z+d¢d.d\d/d]œd^d_„Z,d`d/daœdbdc„Z-d£dMd/ddœdedf„Z.d`d/daœdgdh„Z/d`d/daœdidj„Z0dkd/dlœdmdn„Z1dod/dpœdqdr„Z2dsd/dtœdudv„Z3dwd/dxœdydz„Z4d`d/d{œd|d}„Z5d`d/d{œd~d„Z6d`d/daœd€d„Z7d`d/daœd‚dƒ„Z8d`d/daœd„d…„Z9d`d/daœd†d‡„Z:d¤dˆd/d‰œdŠd‹„Z;dŒd/dœdŽd„Z<edƒeGd‘d’„d’ƒƒƒZ=ed“ƒeGd”d•„d•ƒƒƒZ>ed–ƒeGd—d˜„d˜ƒƒƒZ?ed™ƒeGdšd›„d›ƒƒƒZ@dS)¥é)Ú annotationsé)Ú event_classÚ T_JSON_DICT)Ú    dataclassN)Údom)Úpage)Úruntimec@s6eZdZUdZded<ded<dd„Zedd„ƒZd    S)
ÚSourceOrderConfigzR
    Configuration data for drawing the source order of an elements children.
    zdom.RGBAÚparent_outline_colorÚchild_outline_colorcCs&tƒ}|j ¡|d<|j ¡|d<|S)NÚparentOutlineColorÚchildOutlineColor)Údictr Úto_jsonr ©ÚselfÚjson©rúfd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\selenium/webdriver/common/devtools/v112/overlay.pyrszSourceOrderConfig.to_jsoncCs$|tj |d¡tj |d¡dS)Nr r)r r ©rÚRGBAÚ    from_json©Úclsrrrrr"sþzSourceOrderConfig.from_jsonN©Ú__name__Ú
__module__Ú __qualname__Ú__doc__Ú__annotations__rÚ classmethodrrrrrr
s
r
c@seZdZUdZdZded<dZded<dZded<dZded<dZ    ded<dZ
ded    <dZ d
ed <dZ d
ed <dZ d
ed <dZd
ed<dZded<dZded<dZded<dZded<dZd
ed<dZd
ed<dZd
ed<dZd
ed<dZd
ed<dZd
ed<dd„Zedd„ƒZdS)ÚGridHighlightConfigzC
    Configuration data for the highlighting of Grid elements.
    Nútyping.Optional[bool]Úshow_grid_extension_linesÚshow_positive_line_numbersÚshow_negative_line_numbersÚshow_area_namesÚshow_line_namesÚshow_track_sizesútyping.Optional[dom.RGBA]Úgrid_border_colorÚcell_border_colorÚrow_line_colorÚcolumn_line_colorÚgrid_border_dashÚcell_border_dashÚ row_line_dashÚcolumn_line_dashÚ row_gap_colorÚrow_hatch_colorÚcolumn_gap_colorÚcolumn_hatch_colorÚarea_border_colorÚgrid_background_colorcCsÔtƒ}|jdk    r|j|d<|jdk    r.|j|d<|jdk    rB|j|d<|jdk    rV|j|d<|jdk    rj|j|d<|jdk    r~|j|d<|jdk    r–|j ¡|d<|j    dk    r®|j     ¡|d<|j
dk    rÆ|j
 ¡|d    <|j dk    rÞ|j  ¡|d
<|j dk    rò|j |d <|j dk    r|j |d <|jdk    r|j|d <|jdk    r4|j|d<|jdk    rN|j ¡|d<|jdk    rh|j ¡|d<|jdk    r‚|j ¡|d<|jdk    rœ|j ¡|d<|jdk    r¶|j ¡|d<|jdk    rÐ|j ¡|d<|S)NÚshowGridExtensionLinesÚshowPositiveLineNumbersÚshowNegativeLineNumbersÚ showAreaNamesÚ showLineNamesÚshowTrackSizesÚgridBorderColorÚcellBorderColorÚ rowLineColorÚcolumnLineColorÚgridBorderDashÚcellBorderDashÚ rowLineDashÚcolumnLineDashÚ rowGapColorÚ rowHatchColorÚcolumnGapColorÚcolumnHatchColorÚareaBorderColorÚgridBackgroundColor)rr$r%r&r'r(r)r+rr,r-r.r/r0r1r2r3r4r5r6r7r8rrrrrksT
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
      zGridHighlightConfig.to_jsoncCsü|d|krt|dƒndd|kr,t|dƒndd|krBt|dƒndd|krXt|dƒndd|krnt|dƒndd|kr„t|dƒndd|kržtj |d¡ndd|kr¸tj |d¡ndd    |krÒtj |d    ¡ndd
|krìtj |d
¡ndd |krt|d ƒndd |krt|d ƒndd |kr4t|d ƒndd|krLt|dƒndd|krhtj |d¡ndd|kr„tj |d¡ndd|kr tj |d¡ndd|kr¼tj |d¡ndd|krØtj |d¡ndd|krôtj |d¡nddS)Nr9r:r;r<r=r>r?r@rArBrCrDrErFrGrHrIrJrKrL)r$r%r&r'r(r)r+r,r-r.r/r0r1r2r3r4r5r6r7r8)Úboolrrrrrrrr—s,ìzGridHighlightConfig.from_json)rrrrr$r r%r&r'r(r)r+r,r-r.r/r0r1r2r3r4r5r6r7r8rr!rrrrrr"*s0
                    ,r"c@s†eZdZUdZdZded<dZded<dZded<dZded<dZ    ded    <dZ
ded
<dZ ded <dZ ded <d d„Z edd„ƒZdS)ÚFlexContainerHighlightConfigzM
    Configuration data for the highlighting of Flex container elements.
    Nútyping.Optional[LineStyle]Úcontainer_borderÚline_separatorÚitem_separatorútyping.Optional[BoxStyle]Úmain_distributed_spaceÚcross_distributed_spaceÚ row_gap_spaceÚcolumn_gap_spaceÚcross_alignmentcCsÊtƒ}|jdk    r|j ¡|d<|jdk    r6|j ¡|d<|jdk    rN|j ¡|d<|jdk    rf|j ¡|d<|jdk    r~|j ¡|d<|jdk    r–|j ¡|d<|jdk    r®|j ¡|d<|j    dk    rÆ|j     ¡|d<|S)    NÚcontainerBorderÚ lineSeparatorÚ itemSeparatorÚmainDistributedSpaceÚcrossDistributedSpaceÚ rowGapSpaceÚcolumnGapSpaceÚcrossAlignment)
rrPrrQrRrTrUrVrWrXrrrrrÎs$
 
 
 
 
 
 
 
z$FlexContainerHighlightConfig.to_jsonc CsÈ|d|krt |d¡ndd|kr0t |d¡ndd|krHt |d¡ndd|kr`t |d¡ndd|krxt |d¡ndd|krt |d¡ndd|kr¨t |d¡ndd|krÀt |d¡ndd    S)
NrYrZr[r\r]r^r_r`)rPrQrRrTrUrVrWrX)Ú    LineStylerÚBoxStylerrrrrâsøz&FlexContainerHighlightConfig.from_json)rrrrrPr rQrRrTrUrVrWrXrr!rrrrrrN±s
        rNc@sJeZdZUdZdZded<dZded<dZded<dd    „Ze    d
d „ƒZ
dS) ÚFlexItemHighlightConfigzH
    Configuration data for the highlighting of Flex item elements.
    NrSÚ base_size_boxrOÚbase_size_borderÚflexibility_arrowcCsRtƒ}|jdk    r|j ¡|d<|jdk    r6|j ¡|d<|jdk    rN|j ¡|d<|S)NÚ baseSizeBoxÚbaseSizeBorderÚflexibilityArrow)rrdrrerfrrrrrþs
 
 
zFlexItemHighlightConfig.to_jsoncCsP|d|krt |d¡ndd|kr0t |d¡ndd|krHt |d¡nddS)Nrgrhri)rdrerf)rbrrarrrrrs
ýz!FlexItemHighlightConfig.from_json) rrrrrdr rerfrr!rrrrrrcðs
 
rcc@s>eZdZUdZdZded<dZded<dd„Zed    d
„ƒZ    dS) raz/
    Style information for drawing a line.
    Nr*Úcolorútyping.Optional[str]ÚpatterncCs6tƒ}|jdk    r|j ¡|d<|jdk    r2|j|d<|S)Nrjrl)rrjrrlrrrrrs 
 
 
zLineStyle.to_jsoncCs8|d|krtj |d¡ndd|kr0t|dƒnddS)Nrjrl)rjrl)rrrÚstrrrrrr$sþzLineStyle.from_json)
rrrrrjr rlrr!rrrrrras
  rac@s>eZdZUdZdZded<dZded<dd„Zedd    „ƒZ    dS)
rbz.
    Style information for drawing a box.
    Nr*Ú
fill_colorÚ hatch_colorcCs:tƒ}|jdk    r|j ¡|d<|jdk    r6|j ¡|d<|S)NÚ    fillColorÚ
hatchColor)rrnrrorrrrr7s 
 
zBoxStyle.to_jsoncCs<|d|krtj |d¡ndd|kr4tj |d¡nddS)Nrprq)rnrorrrrrr?sþzBoxStyle.from_json)
rrrrrnr rorr!rrrrrrb,s
  rbc@s,eZdZdZdZdZdd„Zedd„ƒZdS)    ÚContrastAlgorithmZaaZaaaZapcacCs|jS©N©Úvalue©rrrrrLszContrastAlgorithm.to_jsoncCs||ƒSrsrrrrrrOszContrastAlgorithm.from_jsonN)    rrrZAAZAAAZAPCArr!rrrrrrrGs rrc@s
eZdZUdZdZded<dZded<dZded<dZded<dZ    ded<dZ
d    ed
<dZ d    ed <dZ d    ed <dZ d    ed <dZd    ed<dZd    ed<dZd    ed<dZd    ed<dZded<dZded<dZded<dZded<dZded<dZded<dd„Zed d!„ƒZdS)"ÚHighlightConfigzC
    Configuration data for the highlighting of page elements.
    Nr#Ú    show_infoÚ show_stylesÚ show_rulersÚshow_accessibility_infoÚshow_extension_linesr*Ú content_colorÚ padding_colorÚ border_colorÚ margin_colorÚevent_target_colorÚ shape_colorÚshape_margin_colorÚcss_grid_colorútyping.Optional[ColorFormat]Ú color_formatz$typing.Optional[GridHighlightConfig]Úgrid_highlight_configz-typing.Optional[FlexContainerHighlightConfig]Úflex_container_highlight_configz(typing.Optional[FlexItemHighlightConfig]Úflex_item_highlight_configz"typing.Optional[ContrastAlgorithm]Úcontrast_algorithmz7typing.Optional[ContainerQueryContainerHighlightConfig]Ú*container_query_container_highlight_configcCsÎtƒ}|jdk    r|j|d<|jdk    r.|j|d<|jdk    rB|j|d<|jdk    rV|j|d<|jdk    rj|j|d<|jdk    r‚|j ¡|d<|jdk    rš|j ¡|d<|j    dk    r²|j     ¡|d<|j
dk    rÊ|j
 ¡|d    <|j dk    râ|j  ¡|d
<|j dk    rú|j  ¡|d <|j dk    r|j  ¡|d <|jdk    r.|j ¡|d <|jdk    rH|j ¡|d<|jdk    rb|j ¡|d<|jdk    r||j ¡|d<|jdk    r–|j ¡|d<|jdk    r°|j ¡|d<|jdk    rÊ|j ¡|d<|S)NÚshowInfoÚ
showStylesÚ
showRulersÚshowAccessibilityInfoÚshowExtensionLinesÚ contentColorÚ paddingColorÚ borderColorÚ marginColorÚeventTargetColorÚ
shapeColorÚshapeMarginColorÚ cssGridColorÚ colorFormatÚgridHighlightConfigÚflexContainerHighlightConfigÚflexItemHighlightConfigÚcontrastAlgorithmÚ&containerQueryContainerHighlightConfig)rrxryrzr{r|r}rr~rr€rr‚rƒr„r†r‡rˆr‰rŠr‹rrrrr’sP
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
        zHighlightConfig.to_jsoncCsè|d|krt|dƒndd|kr,t|dƒndd|krBt|dƒndd|krXt|dƒndd|krnt|dƒndd|krˆtj |d¡ndd|kr¢tj |d¡ndd|kr¼tj |d¡ndd    |krÖtj |d    ¡ndd
|krðtj |d
¡ndd |kr tj |d ¡ndd |kr(tj |d ¡ndd |krDtj |d ¡ndd|kr^t |d¡ndd|krxt |d¡ndd|kr’t |d¡ndd|kr¬t |d¡ndd|krÆt |d¡ndd|kràt     |d¡nddS)NrŒrrŽrrr‘r’r“r”r•r–r—r˜r™ršr›rœrrž)rxryrzr{r|r}r~rr€rr‚rƒr„r†r‡rˆr‰rŠr‹)
rMrrrÚ ColorFormatr"rNrcrrÚ&ContainerQueryContainerHighlightConfigrrrrr¼s*ízHighlightConfig.from_json)rrrrrxr ryrzr{r|r}r~rr€rr‚rƒr„r†r‡rˆr‰rŠr‹rr!rrrrrrwTs.
                   *rwc@s0eZdZdZdZdZdZdd„Zedd„ƒZ    d    S)
rŸZrgbZhslZhwbÚhexcCs|jSrsrtrvrrrrÛszColorFormat.to_jsoncCs||ƒSrsrrrrrrÞszColorFormat.from_jsonN)
rrrÚRGBZHSLZHWBZHEX_rr!rrrrrrŸÕsrŸc@s6eZdZUdZded<ded<dd„Zedd    „ƒZd
S) ÚGridNodeHighlightConfigz6
    Configurations for Persistent Grid Highlight
    r"r‡ú
dom.NodeIdÚnode_idcCs&tƒ}|j ¡|d<|j ¡|d<|S)NršÚnodeId)rr‡rr¥rrrrrîszGridNodeHighlightConfig.to_jsoncCs"|t |d¡tj |d¡dS)Nršr¦)r‡r¥)r"rrÚNodeIdrrrrrôs þz!GridNodeHighlightConfig.from_jsonNrrrrrr£ãs
r£c@s2eZdZUded<ded<dd„Zedd„ƒZd    S)
ÚFlexNodeHighlightConfigrNrˆr¤r¥cCs&tƒ}|j ¡|d<|j ¡|d<|S)Nr›r¦)rrˆrr¥rrrrrszFlexNodeHighlightConfig.to_jsoncCs"|t |d¡tj |d¡dS)Nr›r¦)rˆr¥)rNrrr§rrrrr
s þz!FlexNodeHighlightConfig.from_jsonN©rrrr rr!rrrrrr¨üs
 
r¨c@sReZdZUdZded<dZded<dZded<dZded<dd    „Ze    d
d „ƒZ
dS) Ú"ScrollSnapContainerHighlightConfigNrOÚsnapport_borderÚsnap_area_borderr*Úscroll_margin_colorÚscroll_padding_colorcCsjtƒ}|jdk    r|j ¡|d<|jdk    r6|j ¡|d<|jdk    rN|j ¡|d<|jdk    rf|j ¡|d<|S)NÚsnapportBorderÚsnapAreaBorderÚscrollMarginColorÚscrollPaddingColor)rr«rr¬r­r®rrrrr s
 
 
 
z*ScrollSnapContainerHighlightConfig.to_jsoncCsl|d|krt |d¡ndd|kr0t |d¡ndd|krJtj |d¡ndd|krdtj |d¡nddS)Nr¯r°r±r²)r«r¬r­r®)rarrrrrrrr,s üz,ScrollSnapContainerHighlightConfig.from_json) rrrr«r r¬r­r®rr!rrrrrrªs
     rªc@s2eZdZUded<ded<dd„Zedd„ƒZd    S)
ÚScrollSnapHighlightConfigrªÚ&scroll_snap_container_highlight_configr¤r¥cCs&tƒ}|j ¡|d<|j ¡|d<|S)NÚ"scrollSnapContainerHighlightConfigr¦)rr´rr¥rrrrr>sz!ScrollSnapHighlightConfig.to_jsoncCs"|t |d¡tj |d¡dS)Nrµr¦)r´r¥)rªrrr§rrrrrDs þz#ScrollSnapHighlightConfig.from_jsonNr©rrrrr³6s
 
r³c@sFeZdZUdZded<dZded<dZded<dd    „Zed
d „ƒZ    dS) Ú HingeConfigz-
    Configuration for dual screen hinge
    zdom.RectÚrectNr*r}Ú outline_colorcCsHtƒ}|j ¡|d<|jdk    r,|j ¡|d<|jdk    rD|j ¡|d<|S)Nr·r‘Ú outlineColor)rr·rr}r¸rrrrrZs
 
zHingeConfig.to_jsoncCsJ|tj |d¡d|kr(tj |d¡ndd|krBtj |d¡nddS)Nr·r‘r¹)r·r}r¸)rZRectrrrrrrrcs
ýzHingeConfig.from_json)
rrrrr r}r¸rr!rrrrrr¶Ls
      r¶c@s2eZdZUded<ded<dd„Zedd„ƒZd    S)
ÚContainerQueryHighlightConfigr r‹r¤r¥cCs&tƒ}|j ¡|d<|j ¡|d<|S)Nržr¦)rr‹rr¥rrrrrtsz%ContainerQueryHighlightConfig.to_jsoncCs"|t |d¡tj |d¡dS)Nržr¦)r‹r¥)r rrr§rrrrrzs þz'ContainerQueryHighlightConfig.from_jsonNr©rrrrrºls
 
rºc@s:eZdZUdZded<dZded<dd„Zedd„ƒZdS)    r NrOrPÚdescendant_bordercCs:tƒ}|jdk    r|j ¡|d<|jdk    r6|j ¡|d<|S)NrYÚdescendantBorder)rrPrr»rrrrrŠs 
 
z.ContainerQueryContainerHighlightConfig.to_jsoncCs8|d|krt |d¡ndd|kr0t |d¡nddS)NrYr¼)rPr»)rarrrrrr’sþz0ContainerQueryContainerHighlightConfig.from_json)    rrrrPr r»rr!rrrrrr ‚s
 
  r c@s2eZdZUded<ded<dd„Zedd„ƒZd    S)
ÚIsolatedElementHighlightConfigÚIsolationModeHighlightConfigÚisolation_mode_highlight_configr¤r¥cCs&tƒ}|j ¡|d<|j ¡|d<|S)NÚisolationModeHighlightConfigr¦)rr¿rr¥rrrrr¢sz&IsolatedElementHighlightConfig.to_jsoncCs"|t |d¡tj |d¡dS)NrÀr¦)r¿r¥)r¾rrr§rrrrr¨s þz(IsolatedElementHighlightConfig.from_jsonNr©rrrrr½šs
 
r½c@sFeZdZUdZded<dZded<dZded<dd„Zedd    „ƒZ    dS)
r¾Nr*Ú resizer_colorÚresizer_handle_colorÚ
mask_colorcCsRtƒ}|jdk    r|j ¡|d<|jdk    r6|j ¡|d<|jdk    rN|j ¡|d<|S)NÚ resizerColorÚresizerHandleColorÚ    maskColor)rrÁrrÂrÃrrrrr»s
 
 
z$IsolationModeHighlightConfig.to_jsoncCsV|d|krtj |d¡ndd|kr4tj |d¡ndd|krNtj |d¡nddS)NrÄrÅrÆ)rÁrÂrÃrrrrrrÅs
ýz&IsolationModeHighlightConfig.from_json)
rrrrÁr rÂrÃrr!rrrrrr¾°s
 
r¾c@s4eZdZdZdZdZdZdZdd„Ze    dd    „ƒZ
d
S) Ú InspectModeZ searchForNodeZsearchForUAShadowDOMZcaptureAreaScreenshotZ showDistancesÚnonecCs|jSrsrtrvrrrrÕszInspectMode.to_jsoncCs||ƒSrsrrrrrrØszInspectMode.from_jsonN) rrrZSEARCH_FOR_NODEZSEARCH_FOR_UA_SHADOW_DOMZCAPTURE_AREA_SCREENSHOTZSHOW_DISTANCESÚNONErr!rrrrrrÇÎsrÇz0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])Úreturnccsddi}|V}dS)z(
    Disables domain notifications.
    ÚmethodzOverlay.disableNr©Úcmd_dictrrrrÚdisableÝsÿrÎccsddi}|V}dS)z'
    Enables domain notifications.
    rËzOverlay.enableNrrÌrrrÚenableçsÿrÏr¤r#r…z0typing.Generator[T_JSON_DICT, T_JSON_DICT, dict])r¥Úinclude_distanceÚ include_styler†r{rÊccsrtƒ}| ¡|d<|dk    r"||d<|dk    r2||d<|dk    rF| ¡|d<|dk    rV||d<d|dœ}|V}t|d    ƒS)
aÓ
    For testing.
 
    :param node_id: Id of the node to get highlight object for.
    :param include_distance: *(Optional)* Whether to include distance info.
    :param include_style: *(Optional)* Whether to include style info.
    :param color_format: *(Optional)* The color format to get config with (default: hex).
    :param show_accessibility_info: *(Optional)* Whether to show accessibility info (default: true).
    :returns: Highlight data for the node.
    r¦NZincludeDistanceZ includeStyler™rz!Overlay.getHighlightObjectForTest©rËÚparamsÚ    highlight©rr)r¥rÐrÑr†r{rÓrÍrrrrÚget_highlight_object_for_testñs  þrÖztyping.List[dom.NodeId])Únode_idsrÊccs4tƒ}dd„|Dƒ|d<d|dœ}|V}t|dƒS)z¦
    For Persistent Grid testing.
 
    :param node_ids: Ids of the node to get highlight object for.
    :returns: Grid Highlight data for the node ids provided.
    cSsg|] }| ¡‘qSr©r©Ú.0ÚirrrÚ
<listcomp>sz7get_grid_highlight_objects_for_test.<locals>.<listcomp>ZnodeIdsz&Overlay.getGridHighlightObjectsForTestrÒZ
highlights©r)r×rÓrÍrrrrÚ#get_grid_highlight_objects_for_tests    þrÞ)r¥rÊccs.tƒ}| ¡|d<d|dœ}|V}t|dƒS)z 
    For Source Order Viewer testing.
 
    :param node_id: Id of the node to highlight.
    :returns: Source order highlight data for the node id provided.
    r¦z,Overlay.getSourceOrderHighlightObjectForTestrÒrÔrÕ)r¥rÓrÍrrrrÚ*get_source_order_highlight_object_for_test's     þrßccsddi}|V}dS)z
    Hides any highlight.
    rËzOverlay.hideHighlightNrrÌrrrÚhide_highlight:sÿràz page.FrameIdr*)Úframe_idr}Úcontent_outline_colorrÊccsNtƒ}| ¡|d<|dk    r&| ¡|d<|dk    r:| ¡|d<d|dœ}|V}dS)a
    Highlights owner element of the frame with given id.
    Deprecated: Doesn't work reliablity and cannot be fixed due to process
    separatation (the owner node might be in a different process). Determine
    the owner node in the client and use highlightNode.
 
    :param frame_id: Identifier of the frame to highlight.
    :param content_color: *(Optional)* The content box highlight fill color (default: transparent).
    :param content_outline_color: *(Optional)* The content box highlight outline color (default: transparent).
    ZframeIdNr‘ZcontentOutlineColorzOverlay.highlightFramerÒrÕ)rár}rârÓrÍrrrrÚhighlight_frameDs   þrãztyping.Optional[dom.NodeId]z"typing.Optional[dom.BackendNodeId]z'typing.Optional[runtime.RemoteObjectId]rk)Úhighlight_configr¥Úbackend_node_idÚ    object_idÚselectorrÊccsrtƒ}| ¡|d<|dk    r&| ¡|d<|dk    r:| ¡|d<|dk    rN| ¡|d<|dk    r^||d<d|dœ}|V}dS)    a
    Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or
    objectId must be specified.
 
    :param highlight_config: A descriptor for the highlight appearance.
    :param node_id: *(Optional)* Identifier of the node to highlight.
    :param backend_node_id: *(Optional)* Identifier of the backend node to highlight.
    :param object_id: *(Optional)* JavaScript object id of the node to be highlighted.
    :param selector: *(Optional)* Selectors to highlight relevant nodes.
    ÚhighlightConfigNr¦Ú backendNodeIdÚobjectIdrçzOverlay.highlightNoderÒrÕ)rär¥rårærçrÓrÍrrrrÚhighlight_node`s    þrëzdom.Quad)Úquadrjr¸rÊccsNtƒ}| ¡|d<|dk    r&| ¡|d<|dk    r:| ¡|d<d|dœ}|V}dS)a1
    Highlights given quad. Coordinates are absolute with respect to the main frame viewport.
 
    :param quad: Quad to highlight
    :param color: *(Optional)* The highlight fill color (default: transparent).
    :param outline_color: *(Optional)* The highlight outline color (default: transparent).
    rìNrjr¹zOverlay.highlightQuadrÒrÕ)rìrjr¸rÓrÍrrrrÚhighlight_quad‚s    þríÚint)ÚxÚyÚwidthÚheightrjr¸rÊc    csbtƒ}||d<||d<||d<||d<|dk    r:| ¡|d<|dk    rN| ¡|d<d|d    œ}|V}dS)
a
    Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.
 
    :param x: X coordinate
    :param y: Y coordinate
    :param width: Rectangle width
    :param height: Rectangle height
    :param color: *(Optional)* The highlight fill color (default: transparent).
    :param outline_color: *(Optional)* The highlight outline color (default: transparent).
    rïrðrñròNrjr¹zOverlay.highlightRectrÒrÕ)    rïrðrñròrjr¸rÓrÍrrrrÚhighlight_rect›s  þró)Úsource_order_configr¥rårærÊccsbtƒ}| ¡|d<|dk    r&| ¡|d<|dk    r:| ¡|d<|dk    rN| ¡|d<d|dœ}|V}dS)aý
    Highlights the source order of the children of the DOM node with given id or with the given
    JavaScript object wrapper. Either nodeId or objectId must be specified.
 
    :param source_order_config: A descriptor for the appearance of the overlay drawing.
    :param node_id: *(Optional)* Identifier of the node to highlight.
    :param backend_node_id: *(Optional)* Identifier of the backend node to highlight.
    :param object_id: *(Optional)* JavaScript object id of the node to be highlighted.
    ZsourceOrderConfigNr¦rérêzOverlay.highlightSourceOrderrÒrÕ)rôr¥rårærÓrÍrrrrÚhighlight_source_order½s    þrõz typing.Optional[HighlightConfig])ÚmoderärÊccs:tƒ}| ¡|d<|dk    r&| ¡|d<d|dœ}|V}dS)av
    Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted.
    Backend then generates 'inspectNodeRequested' event upon element selection.
 
    :param mode: Set an inspection mode.
    :param highlight_config: *(Optional)* A descriptor for the highlight appearance of hovered-over nodes. May be omitted if ```enabled == false```.
    röNrèzOverlay.setInspectModerÒrÕ)rörärÓrÍrrrrÚset_inspect_modeÛs   þr÷rM)ÚshowrÊccs"tƒ}||d<d|dœ}|V}dS)zu
    Highlights owner element of all frames detected to be ads.
 
    :param show: True for showing ad highlights
    røzOverlay.setShowAdHighlightsrÒNrÝ©rørÓrÍrrrrÚset_show_ad_highlightsñs þrú)ÚmessagerÊccs*tƒ}|dk    r||d<d|dœ}|V}dS)zk
    :param message: *(Optional)* The message to display, also triggers resume and step over controls.
    Nrûz"Overlay.setPausedInDebuggerMessagerÒrÝ)rûrÓrÍrrrrÚset_paused_in_debugger_messagesþrüccs"tƒ}||d<d|dœ}|V}dS)zn
    Requests that backend shows debug borders on layers
 
    :param show: True for showing debug borders
    røzOverlay.setShowDebugBordersrÒNrÝrùrrrÚset_show_debug_borderss þrýccs"tƒ}||d<d|dœ}|V}dS)zh
    Requests that backend shows the FPS counter
 
    :param show: True for showing the FPS counter
    røzOverlay.setShowFPSCounterrÒNrÝrùrrrÚset_show_fps_counter#s þrþz$typing.List[GridNodeHighlightConfig])Úgrid_node_highlight_configsrÊccs,tƒ}dd„|Dƒ|d<d|dœ}|V}dS)z´
    Highlight multiple elements with the CSS Grid overlay.
 
    :param grid_node_highlight_configs: An array of node identifiers and descriptors for the highlight appearance.
    cSsg|] }| ¡‘qSrrØrÙrrrrÜ=sz*set_show_grid_overlays.<locals>.<listcomp>ZgridNodeHighlightConfigszOverlay.setShowGridOverlaysrÒNrÝ)rÿrÓrÍrrrrÚset_show_grid_overlays4s þrz$typing.List[FlexNodeHighlightConfig])Úflex_node_highlight_configsrÊccs,tƒ}dd„|Dƒ|d<d|dœ}|V}dS)zx
    :param flex_node_highlight_configs: An array of node identifiers and descriptors for the highlight appearance.
    cSsg|] }| ¡‘qSrrØrÙrrrrÜLsz*set_show_flex_overlays.<locals>.<listcomp>ZflexNodeHighlightConfigszOverlay.setShowFlexOverlaysrÒNrÝ)rrÓrÍrrrrÚset_show_flex_overlaysEs þrz&typing.List[ScrollSnapHighlightConfig])Úscroll_snap_highlight_configsrÊccs,tƒ}dd„|Dƒ|d<d|dœ}|V}dS)zz
    :param scroll_snap_highlight_configs: An array of node identifiers and descriptors for the highlight appearance.
    cSsg|] }| ¡‘qSrrØrÙrrrrÜ[sz1set_show_scroll_snap_overlays.<locals>.<listcomp>ZscrollSnapHighlightConfigsz!Overlay.setShowScrollSnapOverlaysrÒNrÝ)rrÓrÍrrrrÚset_show_scroll_snap_overlaysTs þrz*typing.List[ContainerQueryHighlightConfig])Ú!container_query_highlight_configsrÊccs,tƒ}dd„|Dƒ|d<d|dœ}|V}dS)z~
    :param container_query_highlight_configs: An array of node identifiers and descriptors for the highlight appearance.
    cSsg|] }| ¡‘qSrrØrÙrrrrÜjsz5set_show_container_query_overlays.<locals>.<listcomp>ZcontainerQueryHighlightConfigsz%Overlay.setShowContainerQueryOverlaysrÒNrÝ)rrÓrÍrrrrÚ!set_show_container_query_overlayscs þr)ÚresultrÊccs"tƒ}||d<d|dœ}|V}dS)zl
    Requests that backend shows paint rectangles
 
    :param result: True for showing paint rectangles
    rzOverlay.setShowPaintRectsrÒNrÝ©rrÓrÍrrrrÚset_show_paint_rectsrs þr    ccs"tƒ}||d<d|dœ}|V}dS)zt
    Requests that backend shows layout shift regions
 
    :param result: True for showing layout shift regions
    rz!Overlay.setShowLayoutShiftRegionsrÒNrÝrrrrÚset_show_layout_shift_regionsƒs þr
ccs"tƒ}||d<d|dœ}|V}dS)zx
    Requests that backend shows scroll bottleneck rects
 
    :param show: True for showing scroll bottleneck rects
    røz$Overlay.setShowScrollBottleneckRectsrÒNrÝrùrrrÚ set_show_scroll_bottleneck_rects”s þr ccs"tƒ}||d<d|dœ}|V}dS)zc
    Deprecated, no longer has any effect.
 
    :param show: True for showing hit-test borders
    røzOverlay.setShowHitTestBordersrÒNrÝrùrrrÚset_show_hit_test_borders¥s þr ccs"tƒ}||d<d|dœ}|V}dS)zY
    Request that backend shows an overlay with web vital metrics.
 
    :param show:
    røzOverlay.setShowWebVitalsrÒNrÝrùrrrÚset_show_web_vitals¶s þr ccs"tƒ}||d<d|dœ}|V}dS)zf
    Paints viewport size upon main frame resize.
 
    :param show: Whether to paint size or not.
    røz#Overlay.setShowViewportSizeOnResizerÒNrÝrùrrrÚ set_show_viewport_size_on_resizeÇs þrztyping.Optional[HingeConfig])Ú hinge_configrÊccs.tƒ}|dk    r| ¡|d<d|dœ}|V}dS)zp
    Add a dual screen device hinge
 
    :param hinge_config: *(Optional)* hinge data, null means hideHinge
    NZ hingeConfigzOverlay.setShowHingerÒrÕ)rrÓrÍrrrrÚset_show_hingeØs þrz+typing.List[IsolatedElementHighlightConfig])Ú"isolated_element_highlight_configsrÊccs,tƒ}dd„|Dƒ|d<d|dœ}|V}dS)z³
    Show elements in isolation mode with overlays.
 
    :param isolated_element_highlight_configs: An array of node identifiers and descriptors for the highlight appearance.
    cSsg|] }| ¡‘qSrrØrÙrrrrÜósz.set_show_isolated_elements.<locals>.<listcomp>ZisolatedElementHighlightConfigszOverlay.setShowIsolatedElementsrÒNrÝ)rrÓrÍrrrrÚset_show_isolated_elementsês þrzOverlay.inspectNodeRequestedc@s.eZdZUdZded<edddœdd„ƒZdS)    ÚInspectNodeRequestedz
    Fired when the node should be inspected. This happens after call to ``setInspectMode`` or when
    user manually inspects an element.
    zdom.BackendNodeIdrår©rrÊcCs|tj |d¡dS)Nré)rå)rZ BackendNodeIdrrrrrrsÿzInspectNodeRequested.from_jsonN©rrrrr r!rrrrrrûs
rzOverlay.nodeHighlightRequestedc@s.eZdZUdZded<edddœdd„ƒZdS)    ÚNodeHighlightRequestedzc
    Fired when the node should be highlighted. This happens after call to ``setInspectMode``.
    r¤r¥rrcCs|tj |d¡dS)Nr¦)r¥)rr§rrrrrrsÿz NodeHighlightRequested.from_jsonNrrrrrr s
rzOverlay.screenshotRequestedc@s.eZdZUdZded<edddœdd„ƒZdS)    ÚScreenshotRequestedzN
    Fired when user asks to capture screenshot of some area on the page.
    z page.ViewportÚviewportrrcCs|tj |d¡dS)Nr)r)rZViewportrrrrrr$sÿzScreenshotRequested.from_jsonNrrrrrrs
rzOverlay.inspectModeCanceledc@s$eZdZdZedddœdd„ƒZdS)ÚInspectModeCanceledz3
    Fired when user cancels the inspect mode.
    rrcCs|ƒSrsrrrrrr3szInspectModeCanceled.from_jsonN)rrrrr!rrrrrr+sr)NNNN)NN)NNNN)NN)NN)NNN)N)N)N)AÚ
__future__rÚutilrrZ dataclassesrÚenumÚtypingÚrrr    r
r"rNrcrarbÚEnumrrrwrŸr£r¨rªr³r¶rºr r½r¾rÇrÎrÏrÖrÞrßràrãrërírórõr÷rúrürýrþrrrrr    r
r r r rrrrrrrrrrrÚ<module>sÐ     >  #
 û# ýû$ýú$ü þÿÿ