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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
U
[±dñã@svddlmZddlmZmZddlmZddlZddlZddl    m
Z
ddl    m Z Gdd    „d    e ƒZ Gd
d „d e ƒZeGd d „d ƒƒZGdd„dejƒZGdd„dejƒZGdd„dejƒZGdd„dejƒZGdd„dejƒZeGdd„dƒƒZeGdd„dƒƒZGdd„deƒZeGdd„dƒƒZeGd d!„d!ƒƒZeGd"d#„d#ƒƒZeGd$d%„d%ƒƒZd    d&d'œd(d)„Zdòd    d    d*d+d,œd-d.„Zdód*d/d0d1d2d3d4œd5d6„Z dôd*d/d0d7d8d9œd:d;„Z!d8d<œd=d>„Z"d?d8d@œdAdB„Z#dõdCd8dDœdEdF„Z$död*d/d0d8dGœdHdI„Z%d    d&d'œdJdK„Z&d÷d*d/d0dLdGœdMdN„Z'død*d/d0dOdGœdPdQ„Z(dùd1d2d3dRœdSdT„Z)dúd1d2dUdRœdVdW„Z*dûd    dXd2dYdZœd[d\„Z+düd]d]d2d2d^d_œd`da„Z,dýd*d/d0dbdGœdcdd„Z-d    d+d'œdedf„Z.d?d]d]dYdgœdhdi„Z/d8d<œdjdk„Z0d8d<œdldm„Z1d8d<œdndo„Z2d8d<œdpdq„Z3dþd    d    d*d+d,œdrds„Z4dÿd?d2dtduœdvdw„Z5d?d+dxœdydz„Z6d{dYd|œd}d~„Z7d    d?d+dœd€d„Z8d    d?dYdœd‚dƒ„Z9dYd<œd„d…„Z:d8d<œd†d‡„Z;d    d?d8dˆœd‰dŠ„Z<d    d8d'œd‹dŒ„Z=dd    d1d2d8dœdŽd„Z>dd+d‘œd’d“„Z?dd*d/dCd”d•d–œd—d˜„Z@d    d?d?d8d™œdšd›„ZAdd    d?dCd8dœœddž„ZBddŸd*d/d0d8d œd¡d¢„ZCd£d8d¤œd¥d¦„ZDd    d§d'œd¨d©„ZEddbd‘œdªd«„ZFd    d8d'œd¬d­„ZGd    d?d+dˆœd®d¯„ZHd    d?d8d°œd±d²„ZId    d?d8d³œd´dµ„ZJd8d<œd¶d·„ZKd¸d¹dºœd»d¼„ZLdd    dCd½d¾d¿dÀœdÁd„ZMd    dYd'œdÃdĄZNedŃeGdÆdDŽdǃƒƒZOedȃeGdÉdʄdʃƒƒZPed˃eGdÌd̈́d̓ƒƒZQed΃eGdÏdЄdЃƒƒZRedуeGdÒdӄdӃƒƒZSedԃeGdÕdքdփƒƒZTed׃eGdØdلdكƒƒZUedڃeGdÛd܄d܃ƒƒZVed݃eGdÞd߄d߃ƒƒZWedàƒeGdádâ„d⃃ƒZXedãƒeGdädå„d僃ƒZYedæƒeGdçdè„d胃ƒZZedéƒeGdêdë„d냃ƒZ[edìƒeGdídî„dƒZ\edïƒeGdðdñ„dñƒƒƒZ]dS(é)Ú annotationsé)Ú event_classÚ T_JSON_DICT)Ú    dataclassN)Úpage)ÚruntimecsBeZdZdZddœdd„Zedddœdd„ƒZ‡fd    d
„Z‡ZS) ÚNodeIdz%
    Unique DOM node identifier.
    Úint©ÚreturncCs|S©N©©Úselfrrúbd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\selenium/webdriver/common/devtools/v111/dom.pyÚto_jsonszNodeId.to_json©Újsonr cCs||ƒSr r©ÚclsrrrrÚ    from_jsonszNodeId.from_jsoncsd tƒ ¡¡S)Nz
NodeId({})©ÚformatÚsuperÚ__repr__r©Ú    __class__rrrszNodeId.__repr__©    Ú__name__Ú
__module__Ú __qualname__Ú__doc__rÚ classmethodrrÚ __classcell__rrrrr    s
r    csBeZdZdZddœdd„Zedddœdd„ƒZ‡fd    d
„Z‡ZS) Ú BackendNodeIdzq
    Unique DOM node identifier used to reference a node that may not have been pushed to the
    front-end.
    r
r cCs|Sr rrrrrr$szBackendNodeId.to_jsonrcCs||ƒSr rrrrrr'szBackendNodeId.from_jsoncsd tƒ ¡¡S)NzBackendNodeId({})rrrrrr+szBackendNodeId.__repr__rrrrrr%s
r%c@s>eZdZUdZded<ded<ded<dd    „Zed
d „ƒZd S) Ú BackendNodez,
    Backend node with a friendly name.
    r
Ú    node_typeÚstrÚ    node_namer%Úbackend_node_idcCs,tƒ}|j|d<|j|d<|j ¡|d<|S)NÚnodeTypeÚnodeNameÚ backendNodeId)Údictr'r)r*r©rrrrrr<s
 
 
zBackendNode.to_jsoncCs(|t|dƒt|dƒt |d¡dS)Nr+r,r-)r'r)r*)r
r(r%rrrrrrCs
 
 
 ýzBackendNode.from_jsonN©rr r!r"Ú__annotations__rr#rrrrrr&/s
r&c@sˆeZdZdZdZdZdZdZdZdZ    dZ
d    Z d
Z d Z d Zd ZdZdZdZdZdZdZdZdZdZdZdZdZdZdd„Zedd„ƒZdS) Ú
PseudoTypez
    Pseudo element type.
    z
first-linez first-letterZbeforeÚafterÚmarkerZbackdropZ    selectionz target-textzspelling-errorz grammar-errorZ    highlightzfirst-line-inheritedZ    scrollbarzscrollbar-thumbzscrollbar-buttonzscrollbar-trackzscrollbar-track-piecezscrollbar-cornerZresizerzinput-list-buttonzview-transitionzview-transition-groupzview-transition-image-pairzview-transition-oldzview-transition-newcCs|jSr ©ÚvaluerrrrrjszPseudoType.to_jsoncCs||ƒSr rrrrrrmszPseudoType.from_jsonN) rr r!r"Z
FIRST_LINEZ FIRST_LETTERZBEFOREZAFTERÚMARKERZBACKDROPZ    SELECTIONZ TARGET_TEXTZSPELLING_ERRORZ GRAMMAR_ERRORZ    HIGHLIGHTZFIRST_LINE_INHERITEDZ    SCROLLBARZSCROLLBAR_THUMBZSCROLLBAR_BUTTONZSCROLLBAR_TRACKZSCROLLBAR_TRACK_PIECEZSCROLLBAR_CORNERZRESIZERZINPUT_LIST_BUTTONZVIEW_TRANSITIONZVIEW_TRANSITION_GROUPZVIEW_TRANSITION_IMAGE_PAIRZVIEW_TRANSITION_OLDZVIEW_TRANSITION_NEWrr#rrrrrr2Ls:r2c@s0eZdZdZdZdZdZdd„Zedd„ƒZ    d    S)
ÚShadowRootTypez
    Shadow root type.
    z
user-agentÚopenÚclosedcCs|jSr r5rrrrrzszShadowRootType.to_jsoncCs||ƒSr rrrrrr}szShadowRootType.from_jsonN)
rr r!r"Z
USER_AGENTZOPEN_ZCLOSEDrr#rrrrrr8rsr8c@s0eZdZdZdZdZdZdd„Zedd„ƒZ    d    S)
ÚCompatibilityModez&
    Document compatibility mode.
    Z
QuirksModeZLimitedQuirksModeZ NoQuirksModecCs|jSr r5rrrrrŠszCompatibilityMode.to_jsoncCs||ƒSr rrrrrrszCompatibilityMode.from_jsonN)
rr r!r"Z QUIRKS_MODEZLIMITED_QUIRKS_MODEZNO_QUIRKS_MODErr#rrrrrr;‚sr;c@s0eZdZdZdZdZdZdd„Zedd„ƒZ    d    S)
Ú PhysicalAxesz)
    ContainerSelector physical axes
    Z
HorizontalZVerticalÚBothcCs|jSr r5rrrrršszPhysicalAxes.to_jsoncCs||ƒSr rrrrrrszPhysicalAxes.from_jsonN)
rr r!r"Z
HORIZONTALZVERTICALÚBOTHrr#rrrrrr<’sr<c@s0eZdZdZdZdZdZdd„Zedd„ƒZ    d    S)
Ú LogicalAxesz(
    ContainerSelector logical axes
    ZInlineZBlockr=cCs|jSr r5rrrrrªszLogicalAxes.to_jsoncCs||ƒSr rrrrrr­szLogicalAxes.from_jsonN)
rr r!r"ZINLINEZBLOCKr>rr#rrrrrr?¢sr?c@s‚eZdZUdZded<ded<ded<ded    <ded
<ded <d Zd ed<d Zded<d Zded<d Zded<d Z    ded<d Z
ded<d Z ded<d Z ded<d Z ded<d Zded<d Zded<d Zded<d Zded<d Zded <d Zd!ed"<d Zd#ed$<d Zd%ed&<d Zded'<d Zd%ed(<d Zded)<d Zd%ed*<d Zd+ed,<d Zd-ed.<d Zd/ed0<d Zd1ed2<d3d4„Zed5d6„ƒZ d S)7ÚNodez
    DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes.
    DOMNode is a base node mirror type.
    r    Únode_idr%r*r
r'r(r)Ú
local_nameÚ
node_valueNútyping.Optional[NodeId]Ú    parent_idútyping.Optional[int]Úchild_node_countz"typing.Optional[typing.List[Node]]Úchildrenz!typing.Optional[typing.List[str]]Ú
attributesútyping.Optional[str]Ú document_urlÚbase_urlÚ    public_idÚ    system_idÚinternal_subsetÚ xml_versionÚnamer6ztyping.Optional[PseudoType]Ú pseudo_typeÚpseudo_identifierztyping.Optional[ShadowRootType]Úshadow_root_typeztyping.Optional[page.FrameId]Úframe_idztyping.Optional[Node]Úcontent_documentÚ shadow_rootsÚtemplate_contentÚpseudo_elementsÚimported_documentz)typing.Optional[typing.List[BackendNode]]Údistributed_nodesútyping.Optional[bool]Úis_svgz"typing.Optional[CompatibilityMode]Úcompatibility_modeztyping.Optional[BackendNode]Ú assigned_slotcCs¼tƒ}|j ¡|d<|j ¡|d<|j|d<|j|d<|j|d<|j|d<|jdk    rb|j ¡|d<|j    dk    rv|j    |d<|j
dk    r”d    d
„|j
Dƒ|d <|j dk    r²d d
„|j Dƒ|d <|j dk    rÆ|j |d<|j dk    rÚ|j |d<|jdk    rî|j|d<|jdk    r|j|d<|jdk    r|j|d<|jdk    r0|j|d<|jdk    rF|j|d<|jdk    r\|j|d<|jdk    rv|j ¡|d<|jdk    rŒ|j|d<|jdk    r¦|j ¡|d<|jdk    rÀ|j ¡|d<|jdk    rÚ|j ¡|d<|jdk    rúdd
„|jDƒ|d<|jdk    r|j ¡|d<|jdk    r4dd
„|jDƒ|d<|jdk    rN|j ¡|d <|jdk    rnd!d
„|jDƒ|d"<|jdk    r„|j|d#<|jdk    rž|j ¡|d$<|j dk    r¸|j  ¡|d%<|S)&NÚnodeIdr-r+r,Ú    localNameÚ    nodeValueÚparentIdÚchildNodeCountcSsg|] }| ¡‘qSr©r©Ú.0ÚirrrÚ
<listcomp>%sz Node.to_json.<locals>.<listcomp>rHcSsg|]}|‘qSrrrfrrrri'srIÚ documentURLÚbaseURLÚpublicIdÚsystemIdÚinternalSubsetÚ
xmlVersionrQr6Ú
pseudoTypeÚpseudoIdentifierÚshadowRootTypeÚframeIdÚcontentDocumentcSsg|] }| ¡‘qSrrerfrrrriCsÚ shadowRootsÚtemplateContentcSsg|] }| ¡‘qSrrerfrrrriGsÚpseudoElementsÚimportedDocumentcSsg|] }| ¡‘qSrrerfrrrriKsÚdistributedNodesÚisSVGÚcompatibilityModeÚ assignedSlot)!r.rArr*r'r)rBrCrErGrHrIrKrLrMrNrOrPrQr6rRrSrTrUrVrWrXrYrZr[r]r^r_r/rrrrst
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  z Node.to_jsonc#CsÂ|t |d¡t |d¡t|dƒt|dƒt|dƒt|dƒd|krXt |d¡ndd|krnt|dƒndd    |krŠd
d „|d    Dƒndd |kr¦d d „|d Dƒndd|kr¼t|dƒndd|krÒt|dƒndd|krèt|dƒndd|krþt|dƒndd|krt|dƒndd|kr.t|dƒndd|krFt|dƒndd|kr^t|dƒndd|krxt |d¡ndd|krt|dƒndd|krªt |d¡ndd|krÆtj |d¡ndd|kràt     |d¡ndd|krþdd „|dDƒndd|krt     |d¡ndd|kr6dd „|dDƒndd |krPt     |d ¡ndd!|krnd"d „|d!Dƒndd#|kr†t
|d#ƒndd$|kr t  |d$¡ndd%|krºt  |d%¡ndd&S)'Nr`r-r+r,rarbrcrdrHcSsg|]}t |¡‘qSr©r@rrfrrrri_sz"Node.from_json.<locals>.<listcomp>rIcSsg|] }t|ƒ‘qSr©r(rfrrrri`srjrkrlrmrnrorQr6rprqrrrsrtrucSsg|]}t |¡‘qSrr}rfrrrrinsrvrwcSsg|]}t |¡‘qSrr}rfrrrripsrxrycSsg|]}t |¡‘qSr©r&rrfrrrrirsrzr{r|)rAr*r'r)rBrCrErGrHrIrKrLrMrNrOrPrQr6rRrSrTrUrVrWrXrYrZr[r]r^r_) r    rr%r
r(r2r8rÚFrameIdr@Úboolr;r&rrrrrTsB  
 
 
 
ázNode.from_json)!rr r!r"r1rErGrHrIrKrLrMrNrOrPrQr6rRrSrTrUrVrWrXrYrZr[r]r^r_rr#rrrrrr@²sF
                         <r@c@sJeZdZUdZded<ded<ded<dZded<d    d
„Zed d „ƒZdS) ÚRGBAz,
    A structure holding an RGBA color.
    r
ÚrÚgÚbNztyping.Optional[float]ÚacCs<tƒ}|j|d<|j|d<|j|d<|jdk    r8|j|d<|S)Nrƒr„r…r†)r.rƒr„r…r†r/rrrrŠs
 
 
 
 
z RGBA.to_jsoncCs<|t|dƒt|dƒt|dƒd|kr4t|dƒnddS)Nrƒr„r…r†)rƒr„r…r†)r
Úfloatrrrrr“s 
 
 
üzRGBA.from_json)    rr r!r"r1r†rr#rrrrrr‚ys
     r‚csBeZdZdZddœdd„Zedddœdd„ƒZ‡fd    d
„Z‡ZS) ÚQuadzc
    An array of quad vertices, x immediately followed by y for each point, points clock-wise.
    ztyping.List[float]r cCs|Sr rrrrrr¡sz Quad.to_jsonrcCs||ƒSr rrrrrr¤szQuad.from_jsoncsd tƒ ¡¡S)NzQuad({})rrrrrr¨sz Quad.__repr__rrrrrrˆs
rˆc@sbeZdZUdZded<ded<ded<ded<ded<ded    <d
Zd ed <d d„Zedd„ƒZd
S)ÚBoxModelz
    Box model.
    rˆÚcontentÚpaddingÚborderÚmarginr
ÚwidthÚheightNz!typing.Optional[ShapeOutsideInfo]Ú shape_outsidecCsntƒ}|j ¡|d<|j ¡|d<|j ¡|d<|j ¡|d<|j|d<|j|d<|jdk    rj|j ¡|d<|S)NrŠr‹rŒrrŽrÚ shapeOutside)    r.rŠrr‹rŒrrŽrrr/rrrrÆs
 
 
zBoxModel.to_jsonc Csd|t |d¡t |d¡t |d¡t |d¡t|dƒt|dƒd|kr\t |d¡nddS)    NrŠr‹rŒrrŽrr‘)rŠr‹rŒrrŽrr)rˆrr
ÚShapeOutsideInforrrrrÒs    
 
ùzBoxModel.from_json)    rr r!r"r1rrr#rrrrrr‰¬s
  r‰c@s>eZdZUdZded<ded<ded<dd„Zed    d
„ƒZd S) r’z$
    CSS Shape Outside details.
    rˆÚboundsztyping.List[typing.Any]ÚshapeÚ margin_shapecCs@tƒ}|j ¡|d<dd„|jDƒ|d<dd„|jDƒ|d<|S)Nr“cSsg|]}|‘qSrrrfrrrriðsz,ShapeOutsideInfo.to_json.<locals>.<listcomp>r”cSsg|]}|‘qSrrrfrrrriñsÚ marginShape)r.r“rr”r•r/rrrrís
zShapeOutsideInfo.to_jsoncCs4|t |d¡dd„|dDƒdd„|dDƒdS)Nr“cSsg|]}|‘qSrrrfrrrriøsz.ShapeOutsideInfo.from_json.<locals>.<listcomp>r”cSsg|]}|‘qSrrrfrrrriùsr–)r“r”r•©rˆrrrrrrôs
 ýzShapeOutsideInfo.from_jsonNr0rrrrr’ßs
r’c@sFeZdZUdZded<ded<ded<ded<dd„Zed    d
„ƒZd S) ÚRectz
    Rectangle.
    r‡ÚxÚyrŽrcCs2tƒ}|j|d<|j|d<|j|d<|j|d<|S)Nr™ršrŽr)r.r™ršrŽrr/rrrrs 
 
 
 
z Rect.to_jsoncCs0|t|dƒt|dƒt|dƒt|dƒdS)Nr™ršrŽr)r™ršrŽr)r‡rrrrrs 
 
 
 
üzRect.from_jsonNr0rrrrr˜ýs
r˜c@s2eZdZUded<ded<dd„Zedd„ƒZdS)    ÚCSSComputedStylePropertyr(rQr6cCstƒ}|j|d<|j|d<|S)NrQr6)r.rQr6r/rrrr(s
 
z CSSComputedStyleProperty.to_jsoncCs|t|dƒt|dƒdS)NrQr6)rQr6r~rrrrr.s
 
þz"CSSComputedStyleProperty.from_jsonN)rr r!r1rr#rrrrrr› s
 
r›z<typing.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[str]])rAr ccs4tƒ}| ¡|d<d|dœ}|V}dd„|dDƒS)zÇ
    Collects class names for the node with given id and all of it's child nodes.
 
    **EXPERIMENTAL**
 
    :param node_id: Id of the node to collect class names.
    :returns: Class name list.
    r`z DOM.collectClassNamesFromSubtree©ÚmethodÚparamscSsg|] }t|ƒ‘qSrr~rfrrrriHsz4collect_class_names_from_subtree.<locals>.<listcomp>Z
classNames©r.r©rAržÚcmd_dictrrrrÚ collect_class_names_from_subtree6s  þr¢rDz2typing.Generator[T_JSON_DICT, T_JSON_DICT, NodeId])rAÚtarget_node_idÚinsert_before_node_idr ccsPtƒ}| ¡|d<| ¡|d<|dk    r2| ¡|d<d|dœ}|V}t |d¡S)aµ
    Creates a deep copy of the specified node and places it into the target container before the
    given anchor.
 
    **EXPERIMENTAL**
 
    :param node_id: Id of the node to copy.
    :param target_node_id: Id of the element to drop the copy into.
    :param insert_before_node_id: *(Optional)* Drop the copy before this node (if absent, the copy becomes the last child of ```targetNodeId```).
    :returns: Id of the node clone.
    r`Ú targetNodeIdNÚinsertBeforeNodeIdz
DOM.copyTorœ©r.rr    r©rAr£r¤ržr¡rrrrÚcopy_toKs   þr©ztyping.Optional[BackendNodeId]z'typing.Optional[runtime.RemoteObjectId]rFr\z0typing.Generator[T_JSON_DICT, T_JSON_DICT, Node])rAr*Ú    object_idÚdepthÚpiercer ccs€tƒ}|dk    r| ¡|d<|dk    r.| ¡|d<|dk    rB| ¡|d<|dk    rR||d<|dk    rb||d<d|dœ}|V}t |d    ¡S)
a·
    Describes node given its id, does not require domain to be enabled. Does not start tracking any
    objects, can be used for automation.
 
    :param node_id: *(Optional)* Identifier of the node.
    :param backend_node_id: *(Optional)* Identifier of the backend node.
    :param object_id: *(Optional)* JavaScript object id of the node wrapper.
    :param depth: *(Optional)* The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.
    :param pierce: *(Optional)* Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).
    :returns: Node description.
    Nr`r-ÚobjectIdr«r¬zDOM.describeNoderœÚnode)r.rr@r)rAr*rªr«r¬ržr¡rrrrÚ describe_nodehs    þr¯ztyping.Optional[Rect]z0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])rAr*rªÚrectr ccsjtƒ}|dk    r| ¡|d<|dk    r.| ¡|d<|dk    rB| ¡|d<|dk    rV| ¡|d<d|dœ}|V}dS)ao
    Scrolls the specified rect of the given node into view if not already visible.
    Note: exactly one between nodeId, backendNodeId and objectId should be passed
    to identify the node.
 
    **EXPERIMENTAL**
 
    :param node_id: *(Optional)* Identifier of the node.
    :param backend_node_id: *(Optional)* Identifier of the backend node.
    :param object_id: *(Optional)* JavaScript object id of the node wrapper.
    :param rect: *(Optional)* The rect to be scrolled into view, relative to the node's border box, in CSS pixels. When omitted, center of the node will be used, similar to Element.scrollIntoView.
    Nr`r-r­r°zDOM.scrollIntoViewIfNeededrœrŸ)rAr*rªr°ržr¡rrrrÚscroll_into_view_if_neededs    þr±r ccsddi}|V}dS)z0
    Disables DOM agent for the given page.
    rz DOM.disableNr©r¡rrrrÚdisable¯sÿr³r()Ú    search_idr ccs"tƒ}||d<d|dœ}|V}dS)zÙ
    Discards search results from the session with the given id. ``getSearchResults`` should no longer
    be called for that search.
 
    **EXPERIMENTAL**
 
    :param search_id: Unique search session identifier.
    ÚsearchIdzDOM.discardSearchResultsrœN©r.)r´ržr¡rrrrÚdiscard_search_results¹s þr·rJ)Úinclude_whitespacer ccs*tƒ}|dk    r||d<d|dœ}|V}dS)z·
    Enables DOM agent for the given page.
 
    :param include_whitespace: **(EXPERIMENTAL)** *(Optional)* Whether to include whitespaces in the children array of returned Nodes.
    NZincludeWhitespacez
DOM.enablerœr¶)r¸ržr¡rrrrÚenableÍsþr¹)rAr*rªr ccsVtƒ}|dk    r| ¡|d<|dk    r.| ¡|d<|dk    rB| ¡|d<d|dœ}|V}dS)zô
    Focuses the given element.
 
    :param node_id: *(Optional)* Identifier of the node.
    :param backend_node_id: *(Optional)* Identifier of the backend node.
    :param object_id: *(Optional)* JavaScript object id of the node wrapper.
    Nr`r-r­z    DOM.focusrœrŸ©rAr*rªržr¡rrrrÚfocusßs    þr»ccs4tƒ}| ¡|d<d|dœ}|V}dd„|dDƒS)zº
    Returns attributes for the specified node.
 
    :param node_id: Id of the node to retrieve attibutes for.
    :returns: An interleaved array of node attribute names and values.
    r`zDOM.getAttributesrœcSsg|] }t|ƒ‘qSrr~rfrrrri    sz"get_attributes.<locals>.<listcomp>rIrŸr rrrÚget_attributesùs     þr¼z4typing.Generator[T_JSON_DICT, T_JSON_DICT, BoxModel]ccs`tƒ}|dk    r| ¡|d<|dk    r.| ¡|d<|dk    rB| ¡|d<d|dœ}|V}t |d¡S)a!
    Returns boxes for the given node.
 
    :param node_id: *(Optional)* Identifier of the node.
    :param backend_node_id: *(Optional)* Identifier of the backend node.
    :param object_id: *(Optional)* JavaScript object id of the node wrapper.
    :returns: Box model for the node.
    Nr`r-r­zDOM.getBoxModelrœÚmodel)r.rr‰rrºrrrÚ get_box_model s    þr¾z=typing.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[Quad]]ccsdtƒ}|dk    r| ¡|d<|dk    r.| ¡|d<|dk    rB| ¡|d<d|dœ}|V}dd„|d    DƒS)
a¨
    Returns quads that describe node position on the page. This method
    might return multiple quads for inline nodes.
 
    **EXPERIMENTAL**
 
    :param node_id: *(Optional)* Identifier of the node.
    :param backend_node_id: *(Optional)* Identifier of the backend node.
    :param object_id: *(Optional)* JavaScript object id of the node wrapper.
    :returns: Quads that describe node layout relative to viewport.
    Nr`r-r­zDOM.getContentQuadsrœcSsg|]}t |¡‘qSrr—rfrrrriDsz%get_content_quads.<locals>.<listcomp>ZquadsrŸrºrrrÚget_content_quads(s   þr¿)r«r¬r ccsDtƒ}|dk    r||d<|dk    r&||d<d|dœ}|V}t |d¡S)a£
    Returns the root DOM node (and optionally the subtree) to the caller.
 
    :param depth: *(Optional)* The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.
    :param pierce: *(Optional)* Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).
    :returns: Resulting node.
    Nr«r¬zDOM.getDocumentrœÚroot)r.r@r©r«r¬ržr¡rrrrÚ get_documentGs þrÂz=typing.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[Node]]ccsHtƒ}|dk    r||d<|dk    r&||d<d|dœ}|V}dd„|dDƒS)    a#
    Returns the root DOM node (and optionally the subtree) to the caller.
    Deprecated, as it is not designed to work well with the rest of the DOM agent.
    Use DOMSnapshot.captureSnapshot instead.
 
    :param depth: *(Optional)* The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.
    :param pierce: *(Optional)* Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).
    :returns: Resulting node.
    Nr«r¬zDOM.getFlattenedDocumentrœcSsg|]}t |¡‘qSrr}rfrrrrivsz*get_flattened_document.<locals>.<listcomp>Únodesr¶rÁrrrÚget_flattened_document_s þrÄz%typing.List[CSSComputedStyleProperty]z?typing.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[NodeId]])rAÚcomputed_stylesr¬r ccsVtƒ}| ¡|d<dd„|Dƒ|d<|dk    r4||d<d|dœ}|V}d    d„|d
DƒS) aº
    Finds nodes with a given computed style in a subtree.
 
    **EXPERIMENTAL**
 
    :param node_id: Node ID pointing to the root of a subtree.
    :param computed_styles: The style to filter nodes by (includes nodes if any of properties matches).
    :param pierce: *(Optional)* Whether or not iframes and shadow roots in the same target should be traversed when returning the results (default is false).
    :returns: Resulting nodes.
    r`cSsg|] }| ¡‘qSrrerfrrrriŠsz2get_nodes_for_subtree_by_style.<locals>.<listcomp>ZcomputedStylesNr¬zDOM.getNodesForSubtreeByStylerœcSsg|]}t |¡‘qSr©r    rrfrrrri’sÚnodeIdsrŸ)rArÅr¬ržr¡rrrrÚget_nodes_for_subtree_by_styleys þrÈr
zntyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[BackendNodeId, page.FrameId, typing.Optional[NodeId]]])r™ršÚinclude_user_agent_shadow_domÚignore_pointer_events_noner ccs|tƒ}||d<||d<|dk    r&||d<|dk    r6||d<d|dœ}|V}t |d¡tj |d    ¡d
|krvt |d
¡ndfS) a¼
    Returns node id at given location. Depending on whether DOM domain is enabled, nodeId is
    either returned or not.
 
    :param x: X coordinate.
    :param y: Y coordinate.
    :param include_user_agent_shadow_dom: *(Optional)* False to skip to the nearest non-UA shadow root ancestor (default: false).
    :param ignore_pointer_events_none: *(Optional)* Whether to ignore pointer-events: none on elements and hit test them.
    :returns: A tuple with the following items:
 
        0. **backendNodeId** - Resulting node.
        1. **frameId** - Frame this node belongs to.
        2. **nodeId** - *(Optional)* Id of the node at given coordinates, only when enabled and requested document.
    r™ršNÚincludeUserAgentShadowDOMZignorePointerEventsNonezDOM.getNodeForLocationrœr-rsr`)r.r%rrr€r    )r™ršrÉrÊržr¡rrrrÚget_node_for_location•sþ ýrÌz/typing.Generator[T_JSON_DICT, T_JSON_DICT, str]ccs^tƒ}|dk    r| ¡|d<|dk    r.| ¡|d<|dk    rB| ¡|d<d|dœ}|V}t|dƒS)a
    Returns node's HTML markup.
 
    :param node_id: *(Optional)* Identifier of the node.
    :param backend_node_id: *(Optional)* Identifier of the backend node.
    :param object_id: *(Optional)* JavaScript object id of the node wrapper.
    :returns: Outer HTML markup.
    Nr`r-r­zDOM.getOuterHTMLrœÚ    outerHTML©r.rr(rºrrrÚget_outer_html¼s    þrÏccs0tƒ}| ¡|d<d|dœ}|V}t |d¡S)zÄ
    Returns the id of the nearest ancestor that is a relayout boundary.
 
    **EXPERIMENTAL**
 
    :param node_id: Id of the node.
    :returns: Relayout boundary node id for the given node.
    r`zDOM.getRelayoutBoundaryrœr§r rrrÚget_relayout_boundaryØs  þrÐ)r´Ú
from_indexÚto_indexr ccs@tƒ}||d<||d<||d<d|dœ}|V}dd„|dDƒS)    a†
    Returns search results from given ``fromIndex`` to given ``toIndex`` from the search with the given
    identifier.
 
    **EXPERIMENTAL**
 
    :param search_id: Unique search session identifier.
    :param from_index: Start index of the search result to be returned.
    :param to_index: End index of the search result to be returned.
    :returns: Ids of the search result nodes.
    rµZ    fromIndexZtoIndexzDOM.getSearchResultsrœcSsg|]}t |¡‘qSrrÆrfrrrrisz&get_search_results.<locals>.<listcomp>rÇr¶)r´rÑrÒržr¡rrrrÚget_search_resultsísþrÓccsddi}|V}dS)z
    Hides any highlight.
    rzDOM.hideHighlightNrr²rrrÚhide_highlight    sÿrÔccsddi}|V}dS)z
    Highlights DOM node.
    rzDOM.highlightNodeNrr²rrrÚhighlight_nodesÿrÕccsddi}|V}dS)z%
    Highlights given rectangle.
    rzDOM.highlightRectNrr²rrrÚhighlight_rectsÿrÖccsddi}|V}dS)z:
    Marks last undoable state.
 
    **EXPERIMENTAL**
    rzDOM.markUndoableStateNrr²rrrÚmark_undoable_state'sÿr×ccsPtƒ}| ¡|d<| ¡|d<|dk    r2| ¡|d<d|dœ}|V}t |d¡S)a
    Moves node into the new container, places it before the given anchor.
 
    :param node_id: Id of the node to move.
    :param target_node_id: Id of the element to drop the moved node into.
    :param insert_before_node_id: *(Optional)* Drop node before this one (if absent, the moved node becomes the last child of ```targetNodeId```).
    :returns: New id of the moved node.
    r`r¥Nr¦z
DOM.moveTorœr§r¨rrrÚmove_to3s    þrØzBtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[str, int]])ÚqueryrÉr ccsFtƒ}||d<|dk    r||d<d|dœ}|V}t|dƒt|dƒfS)aý
    Searches for a given string in the DOM tree. Use ``getSearchResults`` to access search results or
    ``cancelSearch`` to end this search session.
 
    **EXPERIMENTAL**
 
    :param query: Plain text or query selector or XPath search query.
    :param include_user_agent_shadow_dom: *(Optional)* True to search in user agent shadow DOM.
    :returns: A tuple with the following items:
 
        0. **searchId** - Unique search session identifier.
        1. **resultCount** - Number of search results.
    rÙNrËzDOM.performSearchrœrµZ resultCount)r.r(r
)rÙrÉržr¡rrrrÚperform_searchMsþ
 
þrÚ)Úpathr ccs,tƒ}||d<d|dœ}|V}t |d¡S)z×
    Requests that the node is sent to the caller given its path. // FIXME, use XPath
 
    **EXPERIMENTAL**
 
    :param path: Path to node in the proprietary format.
    :returns: Id of the node for given path.
    rÛzDOM.pushNodeByPathToFrontendrœr`)r.r    r)rÛržr¡rrrrÚpush_node_by_path_to_frontendms þrÜztyping.List[BackendNodeId])Úbackend_node_idsr ccs:tƒ}dd„|Dƒ|d<d|dœ}|V}dd„|dDƒS)a
    Requests that a batch of nodes is sent to the caller given their backend node ids.
 
    **EXPERIMENTAL**
 
    :param backend_node_ids: The array of backend node ids.
    :returns: The array of ids of pushed nodes that correspond to the backend ids specified in backendNodeIds.
    cSsg|] }| ¡‘qSrrerfrrrriŽsz9push_nodes_by_backend_ids_to_frontend.<locals>.<listcomp>ZbackendNodeIdsz#DOM.pushNodesByBackendIdsToFrontendrœcSsg|]}t |¡‘qSrrÆrfrrrri”srÇr¶)rÝržr¡rrrrÚ%push_nodes_by_backend_ids_to_frontend‚s þrÞ)rAÚselectorr ccs8tƒ}| ¡|d<||d<d|dœ}|V}t |d¡S)z³
    Executes ``querySelector`` on a given node.
 
    :param node_id: Id of the node to query upon.
    :param selector: Selector string.
    :returns: Query selector result.
    r`rßzDOM.querySelectorrœr§©rArßržr¡rrrrÚquery_selector—s  þráccs<tƒ}| ¡|d<||d<d|dœ}|V}dd„|dDƒS)z¶
    Executes ``querySelectorAll`` on a given node.
 
    :param node_id: Id of the node to query upon.
    :param selector: Selector string.
    :returns: Query selector result.
    r`rßzDOM.querySelectorAllrœcSsg|]}t |¡‘qSrrÆrfrrrriÀsz&query_selector_all.<locals>.<listcomp>rÇrŸràrrrÚquery_selector_all­s  þrâccs ddi}|V}dd„|dDƒS)a
    Returns NodeIds of current top layer elements.
    Top layer is rendered closest to the user within a viewport, therefore its elements always
    appear on top of all other content.
 
    **EXPERIMENTAL**
 
    :returns: NodeIds of top layer elements
    rzDOM.getTopLayerElementscSsg|]}t |¡‘qSrrÆrfrrrriÑsz*get_top_layer_elements.<locals>.<listcomp>rÇrr²rrrÚget_top_layer_elementsÃs
ÿrãccsddi}|V}dS)z?
    Re-does the last undone action.
 
    **EXPERIMENTAL**
    rzDOM.redoNrr²rrrÚredoÔsÿrä)rArQr ccs.tƒ}| ¡|d<||d<d|dœ}|V}dS)z½
    Removes attribute with given name from an element with given id.
 
    :param node_id: Id of the element to remove attribute from.
    :param name: Name of the attribute to remove.
    r`rQzDOM.removeAttributerœNrŸ©rArQržr¡rrrrÚremove_attributeàs
 þræccs&tƒ}| ¡|d<d|dœ}|V}dS)zT
    Removes node with given id.
 
    :param node_id: Id of the node to remove.
    r`zDOM.removeNoderœNrŸr rrrÚ remove_nodeôs  þrç)rAr«r¬r ccsFtƒ}| ¡|d<|dk    r"||d<|dk    r2||d<d|dœ}|V}dS)aO
    Requests that children of the node with given id are returned to the caller in form of
    ``setChildNodes`` events where not only immediate children are retrieved, but all children down to
    the specified depth.
 
    :param node_id: Id of the node to get children for.
    :param depth: *(Optional)* The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.
    :param pierce: *(Optional)* Whether or not iframes and shadow roots should be traversed when returning the sub-tree (default is false).
    r`Nr«r¬zDOM.requestChildNodesrœrŸ)rAr«r¬ržr¡rrrrÚrequest_child_nodess þrèzruntime.RemoteObjectId)rªr ccs0tƒ}| ¡|d<d|dœ}|V}t |d¡S)aW
    Requests that the node is sent to the caller given the JavaScript node object reference. All
    nodes that form the path from the node to the root are also sent to the client as a series of
    ``setChildNodes`` notifications.
 
    :param object_id: JavaScript object id to convert into node.
    :returns: Node id for given object.
    r­zDOM.requestNoderœr`r§©rªržr¡rrrrÚ request_node s  þrêz+typing.Optional[runtime.ExecutionContextId]z@typing.Generator[T_JSON_DICT, T_JSON_DICT, runtime.RemoteObject])rAr*Ú object_groupÚexecution_context_idr ccsrtƒ}|dk    r| ¡|d<|dk    r.| ¡|d<|dk    r>||d<|dk    rR| ¡|d<d|dœ}|V}tj |d¡S)    aá
    Resolves the JavaScript node object for a given NodeId or BackendNodeId.
 
    :param node_id: *(Optional)* Id of the node to resolve.
    :param backend_node_id: *(Optional)* Backend identifier of the node to resolve.
    :param object_group: *(Optional)* Symbolic group name that can be used to release multiple objects.
    :param execution_context_id: *(Optional)* Execution context in which to resolve the node.
    :returns: JavaScript object wrapper for given node.
    Nr`r-Z objectGroupZexecutionContextIdzDOM.resolveNoderœÚobject)r.rrZ RemoteObjectr)rAr*rërìržr¡rrrrÚ resolve_node5s   þrî)rArQr6r ccs6tƒ}| ¡|d<||d<||d<d|dœ}|V}dS)z·
    Sets attribute for an element with given id.
 
    :param node_id: Id of the element to set attribute for.
    :param name: Attribute name.
    :param value: Attribute value.
    r`rQr6zDOM.setAttributeValuerœNrŸ)rArQr6ržr¡rrrrÚset_attribute_valueUs  þrï)rAÚtextrQr ccs>tƒ}| ¡|d<||d<|dk    r*||d<d|dœ}|V}dS)aÅ
    Sets attributes on element with given id. This method is useful when user edits some existing
    attribute value and types in several attribute name/value pairs.
 
    :param node_id: Id of the element to set attributes for.
    :param text: Text with a number of attributes. Will parse this text using HTML parser.
    :param name: *(Optional)* Attribute name to replace with new attributes derived from text in case text parsed successfully.
    r`rðNrQzDOM.setAttributesAsTextrœrŸ)rArðrQržr¡rrrrÚset_attributes_as_textls  þrñztyping.List[str])ÚfilesrAr*rªr ccshtƒ}dd„|Dƒ|d<|dk    r,| ¡|d<|dk    r@| ¡|d<|dk    rT| ¡|d<d|d    œ}|V}dS)
a4
    Sets files for the given file input element.
 
    :param files: Array of file paths to set.
    :param node_id: *(Optional)* Identifier of the node.
    :param backend_node_id: *(Optional)* Identifier of the backend node.
    :param object_id: *(Optional)* JavaScript object id of the node wrapper.
    cSsg|]}|‘qSrrrfrrrri”sz(set_file_input_files.<locals>.<listcomp>ròNr`r-r­zDOM.setFileInputFilesrœrŸ)ròrAr*rªržr¡rrrrÚset_file_input_files…s   þrór)r¹r ccs"tƒ}||d<d|dœ}|V}dS)z¯
    Sets if stack traces should be captured for Nodes. See ``Node.getNodeStackTraces``. Default is disabled.
 
    **EXPERIMENTAL**
 
    :param enable: Enable or disable.
    r¹zDOM.setNodeStackTracesEnabledrœNr¶)r¹ržr¡rrrrÚset_node_stack_traces_enabled¢s
þrôzOtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Optional[runtime.StackTrace]]ccs>tƒ}| ¡|d<d|dœ}|V}d|kr:tj |d¡SdS)zý
    Gets stack traces associated with a Node. As of now, only provides stack trace for Node creation.
 
    **EXPERIMENTAL**
 
    :param node_id: Id of the node to get stack traces for.
    :returns: *(Optional)* Creation stack trace, if available.
    r`zDOM.getNodeStackTracesrœZcreationN)r.rrZ
StackTracerr rrrÚget_node_stack_tracesµs  þrõccs.tƒ}| ¡|d<d|dœ}|V}t|dƒS)z¨
    Returns file information for the given
    File wrapper.
 
    **EXPERIMENTAL**
 
    :param object_id: JavaScript object id of the node wrapper.
    :returns: 
    r­zDOM.getFileInforœrÛrÎrérrrÚ get_file_infoÊs  þröccs&tƒ}| ¡|d<d|dœ}|V}dS)zæ
    Enables console to refer to the node with given id via $x (see Command Line API for more details
    $x functions).
 
    **EXPERIMENTAL**
 
    :param node_id: DOM node id to be accessible by means of $x command line API.
    r`zDOM.setInspectedNoderœNrŸr rrrÚset_inspected_nodeàs  þr÷ccs8tƒ}| ¡|d<||d<d|dœ}|V}t |d¡S)z¦
    Sets node name for a node with given id.
 
    :param node_id: Id of the node to set name for.
    :param name: New node's name.
    :returns: New node's id.
    r`rQzDOM.setNodeNamerœr§rårrrÚ set_node_nameôs  þrø)rAr6r ccs.tƒ}| ¡|d<||d<d|dœ}|V}dS)z
    Sets node value for a node with given id.
 
    :param node_id: Id of the node to set value for.
    :param value: New node's value.
    r`r6zDOM.setNodeValuerœNrŸ)rAr6ržr¡rrrrÚset_node_value
s
 þrù)rAÚ
outer_htmlr ccs.tƒ}| ¡|d<||d<d|dœ}|V}dS)z
    Sets node HTML markup, returns new node id.
 
    :param node_id: Id of the node to set markup for.
    :param outer_html: Outer HTML markup to set.
    r`rÍzDOM.setOuterHTMLrœNrŸ)rArúržr¡rrrrÚset_outer_htmls
 þrûccsddi}|V}dS)zA
    Undoes the last performed action.
 
    **EXPERIMENTAL**
    rzDOM.undoNrr²rrrÚundo2sÿrüz page.FrameIdz`typing.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[BackendNodeId, typing.Optional[NodeId]]])rUr ccsJtƒ}| ¡|d<d|dœ}|V}t |d¡d|krDt |d¡ndfS)aE
    Returns iframe node that owns iframe with the given domain.
 
    **EXPERIMENTAL**
 
    :param frame_id:
    :returns: A tuple with the following items:
 
        0. **backendNodeId** - Resulting node.
        1. **nodeId** - *(Optional)* Id of the node at given coordinates, only when enabled and requested document.
    rszDOM.getFrameOwnerrœr-r`N)r.rr%rr    )rUržr¡rrrrÚget_frame_owner>s þ þrýztyping.Optional[PhysicalAxes]ztyping.Optional[LogicalAxes]zCtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Optional[NodeId]])rAÚcontainer_nameÚ physical_axesÚ logical_axesr ccsttƒ}| ¡|d<|dk    r"||d<|dk    r6| ¡|d<|dk    rJ| ¡|d<d|dœ}|V}d|krpt |d¡SdS)a
    Returns the query container of the given node based on container query
    conditions: containerName, physical, and logical axes. If no axes are
    provided, the style container is returned, which is the direct parent or the
    closest element with a matching container-name.
 
    **EXPERIMENTAL**
 
    :param node_id:
    :param container_name: *(Optional)*
    :param physical_axes: *(Optional)*
    :param logical_axes: *(Optional)*
    :returns: *(Optional)* The container node for the given node, or null if not found.
    r`NZ containerNameZ physicalAxesZ logicalAxeszDOM.getContainerForNoderœr§)rArþrÿrržr¡rrrrÚget_container_for_nodeYs   þrccs4tƒ}| ¡|d<d|dœ}|V}dd„|dDƒS)a2
    Returns the descendants of a container query container that have
    container queries against this container.
 
    **EXPERIMENTAL**
 
    :param node_id: Id of the container node to find querying descendants from.
    :returns: Descendant nodes with container queries against the given container.
    r`z&DOM.getQueryingDescendantsForContainerrœcSsg|]}t |¡‘qSrrÆrfrrrrisz:get_querying_descendants_for_container.<locals>.<listcomp>rÇrŸr rrrÚ&get_querying_descendants_for_container}s  þrzDOM.attributeModifiedc@s>eZdZUdZded<ded<ded<edddœd    d
„ƒZd S) ÚAttributeModifiedz9
    Fired when ``Element``'s attribute is modified.
    r    rAr(rQr6rrcCs(|t |d¡t|dƒt|dƒdS)Nr`rQr6)rArQr6©r    rr(rrrrr s
 
 
ýzAttributeModified.from_jsonN©rr r!r"r1r#rrrrrr“s
rzDOM.attributeRemovedc@s6eZdZUdZded<ded<edddœdd    „ƒZd
S) ÚAttributeRemovedz8
    Fired when ``Element``'s attribute is removed.
    r    rAr(rQrrcCs|t |d¡t|dƒdS)Nr`rQ)rArQrrrrrr´s 
þzAttributeRemoved.from_jsonNrrrrrr©s
 
rzDOM.characterDataModifiedc@s6eZdZUdZded<ded<edddœdd    „ƒZd
S) ÚCharacterDataModifiedz5
    Mirrors ``DOMCharacterDataModified`` event.
    r    rAr(Úcharacter_datarrcCs|t |d¡t|dƒdS)Nr`Z characterData)rArrrrrrrÇs 
þzCharacterDataModified.from_jsonNrrrrrr¼s
 
rzDOM.childNodeCountUpdatedc@s6eZdZUdZded<ded<edddœdd    „ƒZd
S) ÚChildNodeCountUpdatedzB
    Fired when ``Container``'s child node count has changed.
    r    rAr
rGrrcCs|t |d¡t|dƒdS)Nr`rd)rArG)r    rr
rrrrrÚs 
þzChildNodeCountUpdated.from_jsonNrrrrrr    Ïs
 
r    zDOM.childNodeInsertedc@s>eZdZUdZded<ded<ded<edddœd    d
„ƒZd S) ÚChildNodeInsertedz,
    Mirrors ``DOMNodeInserted`` event.
    r    Úparent_node_idÚprevious_node_idr@r®rrcCs,|t |d¡t |d¡t |d¡dS)NÚ parentNodeIdZpreviousNodeIdr®)r r r®©r    rr@rrrrrïs
   ýzChildNodeInserted.from_jsonNrrrrrr
âs
r
zDOM.childNodeRemovedc@s6eZdZUdZded<ded<edddœdd„ƒZd    S)
ÚChildNodeRemovedz+
    Mirrors ``DOMNodeRemoved`` event.
    r    r rArrcCs |t |d¡t |d¡dS)Nr r`)r rArÆrrrrrs  þzChildNodeRemoved.from_jsonNrrrrrrøs
 
rzDOM.distributedNodesUpdatedc@s6eZdZUdZded<ded<edddœdd    „ƒZd
S) ÚDistributedNodesUpdatedzD
    **EXPERIMENTAL**
 
    Called when distribution is changed.
    r    Úinsertion_point_idztyping.List[BackendNode]r[rrcCs$|t |d¡dd„|dDƒdS)NZinsertionPointIdcSsg|]}t |¡‘qSrrrfrrrrisz5DistributedNodesUpdated.from_json.<locals>.<listcomp>ry)rr[rÆrrrrrs þz!DistributedNodesUpdated.from_jsonNrrrrrr s
 
rzDOM.documentUpdatedc@s$eZdZdZedddœdd„ƒZdS)ÚDocumentUpdatedzY
    Fired when ``Document`` has been totally updated. Node ids are no longer valid.
    rrcCs|ƒSr rrrrrr(szDocumentUpdated.from_jsonN©rr r!r"r#rrrrrr srzDOM.inlineStyleInvalidatedc@s.eZdZUdZded<edddœdd„ƒZdS)    ÚInlineStyleInvalidatedzr
    **EXPERIMENTAL**
 
    Fired when ``Element``'s inline style is modified via a CSS property modification.
    ztyping.List[NodeId]Únode_idsrrcCs|dd„|dDƒdS)NcSsg|]}t |¡‘qSrrÆrfrrrri=sz4InlineStyleInvalidated.from_json.<locals>.<listcomp>rÇ)rrrrrrr:sÿz InlineStyleInvalidated.from_jsonNrrrrrr/s
rzDOM.pseudoElementAddedc@s6eZdZUdZded<ded<edddœdd    „ƒZd
S) ÚPseudoElementAddedzT
    **EXPERIMENTAL**
 
    Called when a pseudo element is added to an element.
    r    rEr@Úpseudo_elementrrcCs |t |d¡t |d¡dS)NrcZ pseudoElement)rErrrrrrrNs  þzPseudoElementAdded.from_jsonNrrrrrrAs
 
rzDOM.topLayerElementsUpdatedc@s$eZdZdZedddœdd„ƒZdS)ÚTopLayerElementsUpdatedzK
    **EXPERIMENTAL**
 
    Called when top layer elements are changed.
    rrcCs|ƒSr rrrrrr`sz!TopLayerElementsUpdated.from_jsonNrrrrrrVsrzDOM.pseudoElementRemovedc@s6eZdZUdZded<ded<edddœdd„ƒZd    S)
ÚPseudoElementRemovedzX
    **EXPERIMENTAL**
 
    Called when a pseudo element is removed from an element.
    r    rEÚpseudo_element_idrrcCs |t |d¡t |d¡dS)NrcZpseudoElementId)rErrÆrrrrrts  þzPseudoElementRemoved.from_jsonNrrrrrrgs
 
rzDOM.setChildNodesc@s6eZdZUdZded<ded<edddœdd    „ƒZd
S) Ú SetChildNodesz‘
    Fired when backend wants to provide client with the missing DOM structure. This happens upon
    most of the calls requesting node ids.
    r    rEztyping.List[Node]rÃrrcCs$|t |d¡dd„|dDƒdS)NrccSsg|]}t |¡‘qSrr}rfrrrriŒsz+SetChildNodes.from_json.<locals>.<listcomp>rÃ)rErÃrÆrrrrrˆs þzSetChildNodes.from_jsonNrrrrrr|s
 
rzDOM.shadowRootPoppedc@s6eZdZUdZded<ded<edddœdd„ƒZd    S)
ÚShadowRootPoppedzS
    **EXPERIMENTAL**
 
    Called when shadow root is popped from the element.
    r    Úhost_idÚroot_idrrcCs |t |d¡t |d¡dS)NÚhostIdZrootId)rrrÆrrrrrs  þzShadowRootPopped.from_jsonNrrrrrrs
 
rzDOM.shadowRootPushedc@s6eZdZUdZded<ded<edddœdd    „ƒZd
S) ÚShadowRootPushedzS
    **EXPERIMENTAL**
 
    Called when shadow root is pushed into the element.
    r    rr@rÀrrcCs |t |d¡t |d¡dS)NrrÀ)rrÀrrrrrr²s  þzShadowRootPushed.from_jsonNrrrrrr ¥s
 
r )N)NNNNN)NNNN)N)NNN)NNN)NNN)NN)NN)N)NN)NNN)N)N)NN)NNNN)N)NNN)NNN)^Ú
__future__rÚutilrrZ dataclassesrÚenumÚtypingÚrrr
r    r%r&ÚEnumr2r8r;r<r?r@r‚Úlistrˆ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×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ýrrrrrr    r
rrrrrrrrrr rrrrÚ<module>sP    &G#2"ýû&ü"
ÿýýý þþýü(ý
 
 
ýþ  ýü ýü ü$