overlay
BoxStyle
dataclass
Style information for drawing a box.
Source code in zendriver/cdp/overlay.py
fill_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
hatch_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
__init__(fill_color=None, hatch_color=None)
from_json(json)
classmethod
Source code in zendriver/cdp/overlay.py
to_json()
ColorFormat
Bases: Enum
Source code in zendriver/cdp/overlay.py
HEX_ = 'hex'
class-attribute
instance-attribute
HSL = 'hsl'
class-attribute
instance-attribute
HWB = 'hwb'
class-attribute
instance-attribute
RGB = 'rgb'
class-attribute
instance-attribute
from_json(json)
classmethod
ContainerQueryContainerHighlightConfig
dataclass
Source code in zendriver/cdp/overlay.py
container_border: typing.Optional[LineStyle] = None
class-attribute
instance-attribute
descendant_border: typing.Optional[LineStyle] = None
class-attribute
instance-attribute
__init__(container_border=None, descendant_border=None)
from_json(json)
classmethod
Source code in zendriver/cdp/overlay.py
to_json()
Source code in zendriver/cdp/overlay.py
ContainerQueryHighlightConfig
dataclass
Source code in zendriver/cdp/overlay.py
container_query_container_highlight_config: ContainerQueryContainerHighlightConfig
instance-attribute
node_id: dom.NodeId
instance-attribute
__init__(container_query_container_highlight_config, node_id)
from_json(json)
classmethod
Source code in zendriver/cdp/overlay.py
to_json()
ContrastAlgorithm
Bases: Enum
Source code in zendriver/cdp/overlay.py
AA = 'aa'
class-attribute
instance-attribute
AAA = 'aaa'
class-attribute
instance-attribute
APCA = 'apca'
class-attribute
instance-attribute
from_json(json)
classmethod
FlexContainerHighlightConfig
dataclass
Configuration data for the highlighting of Flex container elements.
Source code in zendriver/cdp/overlay.py
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 |
|
column_gap_space: typing.Optional[BoxStyle] = None
class-attribute
instance-attribute
container_border: typing.Optional[LineStyle] = None
class-attribute
instance-attribute
cross_alignment: typing.Optional[LineStyle] = None
class-attribute
instance-attribute
cross_distributed_space: typing.Optional[BoxStyle] = None
class-attribute
instance-attribute
item_separator: typing.Optional[LineStyle] = None
class-attribute
instance-attribute
line_separator: typing.Optional[LineStyle] = None
class-attribute
instance-attribute
main_distributed_space: typing.Optional[BoxStyle] = None
class-attribute
instance-attribute
row_gap_space: typing.Optional[BoxStyle] = None
class-attribute
instance-attribute
__init__(container_border=None, line_separator=None, item_separator=None, main_distributed_space=None, cross_distributed_space=None, row_gap_space=None, column_gap_space=None, cross_alignment=None)
from_json(json)
classmethod
Source code in zendriver/cdp/overlay.py
to_json()
Source code in zendriver/cdp/overlay.py
FlexItemHighlightConfig
dataclass
Configuration data for the highlighting of Flex item elements.
Source code in zendriver/cdp/overlay.py
base_size_border: typing.Optional[LineStyle] = None
class-attribute
instance-attribute
base_size_box: typing.Optional[BoxStyle] = None
class-attribute
instance-attribute
flexibility_arrow: typing.Optional[LineStyle] = None
class-attribute
instance-attribute
__init__(base_size_box=None, base_size_border=None, flexibility_arrow=None)
from_json(json)
classmethod
Source code in zendriver/cdp/overlay.py
to_json()
Source code in zendriver/cdp/overlay.py
FlexNodeHighlightConfig
dataclass
Source code in zendriver/cdp/overlay.py
flex_container_highlight_config: FlexContainerHighlightConfig
instance-attribute
node_id: dom.NodeId
instance-attribute
__init__(flex_container_highlight_config, node_id)
from_json(json)
classmethod
Source code in zendriver/cdp/overlay.py
GridHighlightConfig
dataclass
Configuration data for the highlighting of Grid elements.
Source code in zendriver/cdp/overlay.py
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 |
|
area_border_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
cell_border_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
cell_border_dash: typing.Optional[bool] = None
class-attribute
instance-attribute
column_gap_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
column_hatch_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
column_line_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
column_line_dash: typing.Optional[bool] = None
class-attribute
instance-attribute
grid_background_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
grid_border_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
grid_border_dash: typing.Optional[bool] = None
class-attribute
instance-attribute
row_gap_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
row_hatch_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
row_line_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
row_line_dash: typing.Optional[bool] = None
class-attribute
instance-attribute
show_area_names: typing.Optional[bool] = None
class-attribute
instance-attribute
show_grid_extension_lines: typing.Optional[bool] = None
class-attribute
instance-attribute
show_line_names: typing.Optional[bool] = None
class-attribute
instance-attribute
show_negative_line_numbers: typing.Optional[bool] = None
class-attribute
instance-attribute
show_positive_line_numbers: typing.Optional[bool] = None
class-attribute
instance-attribute
show_track_sizes: typing.Optional[bool] = None
class-attribute
instance-attribute
__init__(show_grid_extension_lines=None, show_positive_line_numbers=None, show_negative_line_numbers=None, show_area_names=None, show_line_names=None, show_track_sizes=None, grid_border_color=None, cell_border_color=None, row_line_color=None, column_line_color=None, grid_border_dash=None, cell_border_dash=None, row_line_dash=None, column_line_dash=None, row_gap_color=None, row_hatch_color=None, column_gap_color=None, column_hatch_color=None, area_border_color=None, grid_background_color=None)
from_json(json)
classmethod
Source code in zendriver/cdp/overlay.py
to_json()
Source code in zendriver/cdp/overlay.py
GridNodeHighlightConfig
dataclass
Configurations for Persistent Grid Highlight
Source code in zendriver/cdp/overlay.py
grid_highlight_config: GridHighlightConfig
instance-attribute
node_id: dom.NodeId
instance-attribute
__init__(grid_highlight_config, node_id)
from_json(json)
classmethod
HighlightConfig
dataclass
Configuration data for the highlighting of page elements.
Source code in zendriver/cdp/overlay.py
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 |
|
border_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
color_format: typing.Optional[ColorFormat] = None
class-attribute
instance-attribute
container_query_container_highlight_config: typing.Optional[ContainerQueryContainerHighlightConfig] = None
class-attribute
instance-attribute
content_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
contrast_algorithm: typing.Optional[ContrastAlgorithm] = None
class-attribute
instance-attribute
css_grid_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
event_target_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
flex_container_highlight_config: typing.Optional[FlexContainerHighlightConfig] = None
class-attribute
instance-attribute
flex_item_highlight_config: typing.Optional[FlexItemHighlightConfig] = None
class-attribute
instance-attribute
grid_highlight_config: typing.Optional[GridHighlightConfig] = None
class-attribute
instance-attribute
margin_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
padding_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
shape_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
shape_margin_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
show_accessibility_info: typing.Optional[bool] = None
class-attribute
instance-attribute
show_extension_lines: typing.Optional[bool] = None
class-attribute
instance-attribute
show_info: typing.Optional[bool] = None
class-attribute
instance-attribute
show_rulers: typing.Optional[bool] = None
class-attribute
instance-attribute
show_styles: typing.Optional[bool] = None
class-attribute
instance-attribute
__init__(show_info=None, show_styles=None, show_rulers=None, show_accessibility_info=None, show_extension_lines=None, content_color=None, padding_color=None, border_color=None, margin_color=None, event_target_color=None, shape_color=None, shape_margin_color=None, css_grid_color=None, color_format=None, grid_highlight_config=None, flex_container_highlight_config=None, flex_item_highlight_config=None, contrast_algorithm=None, container_query_container_highlight_config=None)
from_json(json)
classmethod
Source code in zendriver/cdp/overlay.py
to_json()
Source code in zendriver/cdp/overlay.py
HingeConfig
dataclass
Configuration for dual screen hinge
Source code in zendriver/cdp/overlay.py
content_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
outline_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
rect: dom.Rect
instance-attribute
__init__(rect, content_color=None, outline_color=None)
from_json(json)
classmethod
Source code in zendriver/cdp/overlay.py
to_json()
Source code in zendriver/cdp/overlay.py
InspectMode
Bases: Enum
Source code in zendriver/cdp/overlay.py
CAPTURE_AREA_SCREENSHOT = 'captureAreaScreenshot'
class-attribute
instance-attribute
NONE = 'none'
class-attribute
instance-attribute
SEARCH_FOR_NODE = 'searchForNode'
class-attribute
instance-attribute
SEARCH_FOR_UA_SHADOW_DOM = 'searchForUAShadowDOM'
class-attribute
instance-attribute
SHOW_DISTANCES = 'showDistances'
class-attribute
instance-attribute
from_json(json)
classmethod
InspectModeCanceled
dataclass
Fired when user cancels the inspect mode.
Source code in zendriver/cdp/overlay.py
InspectNodeRequested
dataclass
Fired when the node should be inspected. This happens after call to setInspectMode
or when
user manually inspects an element.
Source code in zendriver/cdp/overlay.py
backend_node_id: dom.BackendNodeId
instance-attribute
__init__(backend_node_id)
IsolatedElementHighlightConfig
dataclass
Source code in zendriver/cdp/overlay.py
isolation_mode_highlight_config: IsolationModeHighlightConfig
instance-attribute
node_id: dom.NodeId
instance-attribute
__init__(isolation_mode_highlight_config, node_id)
from_json(json)
classmethod
Source code in zendriver/cdp/overlay.py
IsolationModeHighlightConfig
dataclass
Source code in zendriver/cdp/overlay.py
mask_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
resizer_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
resizer_handle_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
__init__(resizer_color=None, resizer_handle_color=None, mask_color=None)
from_json(json)
classmethod
Source code in zendriver/cdp/overlay.py
to_json()
Source code in zendriver/cdp/overlay.py
LineStyle
dataclass
Style information for drawing a line.
Source code in zendriver/cdp/overlay.py
color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
pattern: typing.Optional[str] = None
class-attribute
instance-attribute
__init__(color=None, pattern=None)
from_json(json)
classmethod
Source code in zendriver/cdp/overlay.py
NodeHighlightRequested
dataclass
Fired when the node should be highlighted. This happens after call to setInspectMode
.
Source code in zendriver/cdp/overlay.py
ScreenshotRequested
dataclass
Fired when user asks to capture screenshot of some area on the page.
Source code in zendriver/cdp/overlay.py
ScrollSnapContainerHighlightConfig
dataclass
Source code in zendriver/cdp/overlay.py
scroll_margin_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
scroll_padding_color: typing.Optional[dom.RGBA] = None
class-attribute
instance-attribute
snap_area_border: typing.Optional[LineStyle] = None
class-attribute
instance-attribute
snapport_border: typing.Optional[LineStyle] = None
class-attribute
instance-attribute
__init__(snapport_border=None, snap_area_border=None, scroll_margin_color=None, scroll_padding_color=None)
from_json(json)
classmethod
Source code in zendriver/cdp/overlay.py
to_json()
Source code in zendriver/cdp/overlay.py
ScrollSnapHighlightConfig
dataclass
Source code in zendriver/cdp/overlay.py
node_id: dom.NodeId
instance-attribute
scroll_snap_container_highlight_config: ScrollSnapContainerHighlightConfig
instance-attribute
__init__(scroll_snap_container_highlight_config, node_id)
from_json(json)
classmethod
Source code in zendriver/cdp/overlay.py
SourceOrderConfig
dataclass
Configuration data for drawing the source order of an elements children.
Source code in zendriver/cdp/overlay.py
child_outline_color: dom.RGBA
instance-attribute
parent_outline_color: dom.RGBA
instance-attribute
__init__(parent_outline_color, child_outline_color)
from_json(json)
classmethod
WindowControlsOverlayConfig
dataclass
Configuration for Window Controls Overlay
Source code in zendriver/cdp/overlay.py
selected_platform: str
instance-attribute
show_css: bool
instance-attribute
theme_color: str
instance-attribute
__init__(show_css, selected_platform, theme_color)
from_json(json)
classmethod
disable()
enable()
get_grid_highlight_objects_for_test(node_ids)
For Persistent Grid testing.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
node_ids
|
List[NodeId]
|
Ids of the node to get highlight object for. |
required |
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, dict]
|
Grid Highlight data for the node ids provided. |
Source code in zendriver/cdp/overlay.py
get_highlight_object_for_test(node_id, include_distance=None, include_style=None, color_format=None, show_accessibility_info=None)
For testing.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
node_id
|
NodeId
|
Id of the node to get highlight object for. |
required |
include_distance
|
Optional[bool]
|
(Optional) Whether to include distance info. |
None
|
include_style
|
Optional[bool]
|
(Optional) Whether to include style info. |
None
|
color_format
|
Optional[ColorFormat]
|
(Optional) The color format to get config with (default: hex). |
None
|
show_accessibility_info
|
Optional[bool]
|
(Optional) Whether to show accessibility info (default: true). |
None
|
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, dict]
|
Highlight data for the node. |
Source code in zendriver/cdp/overlay.py
get_source_order_highlight_object_for_test(node_id)
For Source Order Viewer testing.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
node_id
|
NodeId
|
Id of the node to highlight. |
required |
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, dict]
|
Source order highlight data for the node id provided. |
Source code in zendriver/cdp/overlay.py
hide_highlight()
highlight_frame(frame_id, content_color=None, content_outline_color=None)
Highlights owner element of the frame with given id. Deprecated: Doesn't work reliably and cannot be fixed due to process separation (the owner node might be in a different process). Determine the owner node in the client and use highlightNode.
.. deprecated:: 1.3
Parameters:
Name | Type | Description | Default |
---|---|---|---|
frame_id
|
FrameId
|
Identifier of the frame to highlight. |
required |
content_color
|
Optional[RGBA]
|
(Optional) The content box highlight fill color (default: transparent). |
None
|
content_outline_color
|
Optional[RGBA]
|
(Optional) The content box highlight outline color (default: transparent). |
None
|
Source code in zendriver/cdp/overlay.py
highlight_node(highlight_config, node_id=None, backend_node_id=None, object_id=None, selector=None)
Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
highlight_config
|
HighlightConfig
|
A descriptor for the highlight appearance. |
required |
node_id
|
Optional[NodeId]
|
(Optional) Identifier of the node to highlight. |
None
|
backend_node_id
|
Optional[BackendNodeId]
|
(Optional) Identifier of the backend node to highlight. |
None
|
object_id
|
Optional[RemoteObjectId]
|
(Optional) JavaScript object id of the node to be highlighted. |
None
|
selector
|
Optional[str]
|
(Optional) Selectors to highlight relevant nodes. |
None
|
Source code in zendriver/cdp/overlay.py
highlight_quad(quad, color=None, outline_color=None)
Highlights given quad. Coordinates are absolute with respect to the main frame viewport.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
quad
|
Quad
|
Quad to highlight |
required |
color
|
Optional[RGBA]
|
(Optional) The highlight fill color (default: transparent). |
None
|
outline_color
|
Optional[RGBA]
|
(Optional) The highlight outline color (default: transparent). |
None
|
Source code in zendriver/cdp/overlay.py
highlight_rect(x, y, width, height, color=None, outline_color=None)
Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x
|
int
|
X coordinate |
required |
y
|
int
|
Y coordinate |
required |
width
|
int
|
Rectangle width |
required |
height
|
int
|
Rectangle height |
required |
color
|
Optional[RGBA]
|
(Optional) The highlight fill color (default: transparent). |
None
|
outline_color
|
Optional[RGBA]
|
(Optional) The highlight outline color (default: transparent). |
None
|
Source code in zendriver/cdp/overlay.py
highlight_source_order(source_order_config, node_id=None, backend_node_id=None, object_id=None)
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.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
source_order_config
|
SourceOrderConfig
|
A descriptor for the appearance of the overlay drawing. |
required |
node_id
|
Optional[NodeId]
|
(Optional) Identifier of the node to highlight. |
None
|
backend_node_id
|
Optional[BackendNodeId]
|
(Optional) Identifier of the backend node to highlight. |
None
|
object_id
|
Optional[RemoteObjectId]
|
(Optional) JavaScript object id of the node to be highlighted. |
None
|
Source code in zendriver/cdp/overlay.py
set_inspect_mode(mode, highlight_config=None)
Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequested' event upon element selection.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mode
|
InspectMode
|
Set an inspection mode. |
required |
highlight_config
|
Optional[HighlightConfig]
|
(Optional) A descriptor for the highlight appearance of hovered-over nodes. May be omitted if |
None
|
Source code in zendriver/cdp/overlay.py
set_paused_in_debugger_message(message=None)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
Optional[str]
|
(Optional) The message to display, also triggers resume and step over controls. |
None
|
Source code in zendriver/cdp/overlay.py
set_show_ad_highlights(show)
Highlights owner element of all frames detected to be ads.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
show
|
bool
|
True for showing ad highlights |
required |
Source code in zendriver/cdp/overlay.py
set_show_container_query_overlays(container_query_highlight_configs)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
container_query_highlight_configs
|
List[ContainerQueryHighlightConfig]
|
An array of node identifiers and descriptors for the highlight appearance. |
required |
Source code in zendriver/cdp/overlay.py
set_show_debug_borders(show)
Requests that backend shows debug borders on layers
Parameters:
Name | Type | Description | Default |
---|---|---|---|
show
|
bool
|
True for showing debug borders |
required |
Source code in zendriver/cdp/overlay.py
set_show_flex_overlays(flex_node_highlight_configs)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
flex_node_highlight_configs
|
List[FlexNodeHighlightConfig]
|
An array of node identifiers and descriptors for the highlight appearance. |
required |
Source code in zendriver/cdp/overlay.py
set_show_fps_counter(show)
Requests that backend shows the FPS counter
Parameters:
Name | Type | Description | Default |
---|---|---|---|
show
|
bool
|
True for showing the FPS counter |
required |
Source code in zendriver/cdp/overlay.py
set_show_grid_overlays(grid_node_highlight_configs)
Highlight multiple elements with the CSS Grid overlay.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
grid_node_highlight_configs
|
List[GridNodeHighlightConfig]
|
An array of node identifiers and descriptors for the highlight appearance. |
required |
Source code in zendriver/cdp/overlay.py
set_show_hinge(hinge_config=None)
Add a dual screen device hinge
Parameters:
Name | Type | Description | Default |
---|---|---|---|
hinge_config
|
Optional[HingeConfig]
|
(Optional) hinge data, null means hideHinge |
None
|
Source code in zendriver/cdp/overlay.py
set_show_hit_test_borders(show)
Deprecated, no longer has any effect.
.. deprecated:: 1.3
Parameters:
Name | Type | Description | Default |
---|---|---|---|
show
|
bool
|
True for showing hit-test borders |
required |
Source code in zendriver/cdp/overlay.py
set_show_isolated_elements(isolated_element_highlight_configs)
Show elements in isolation mode with overlays.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
isolated_element_highlight_configs
|
List[IsolatedElementHighlightConfig]
|
An array of node identifiers and descriptors for the highlight appearance. |
required |
Source code in zendriver/cdp/overlay.py
set_show_layout_shift_regions(result)
Requests that backend shows layout shift regions
Parameters:
Name | Type | Description | Default |
---|---|---|---|
result
|
bool
|
True for showing layout shift regions |
required |
Source code in zendriver/cdp/overlay.py
set_show_paint_rects(result)
Requests that backend shows paint rectangles
Parameters:
Name | Type | Description | Default |
---|---|---|---|
result
|
bool
|
True for showing paint rectangles |
required |
Source code in zendriver/cdp/overlay.py
set_show_scroll_bottleneck_rects(show)
Requests that backend shows scroll bottleneck rects
Parameters:
Name | Type | Description | Default |
---|---|---|---|
show
|
bool
|
True for showing scroll bottleneck rects |
required |
Source code in zendriver/cdp/overlay.py
set_show_scroll_snap_overlays(scroll_snap_highlight_configs)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
scroll_snap_highlight_configs
|
List[ScrollSnapHighlightConfig]
|
An array of node identifiers and descriptors for the highlight appearance. |
required |
Source code in zendriver/cdp/overlay.py
set_show_viewport_size_on_resize(show)
Paints viewport size upon main frame resize.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
show
|
bool
|
Whether to paint size or not. |
required |
Source code in zendriver/cdp/overlay.py
set_show_web_vitals(show)
Deprecated, no longer has any effect.
.. deprecated:: 1.3
Parameters:
Name | Type | Description | Default |
---|---|---|---|
show
|
bool
|
|
required |
Source code in zendriver/cdp/overlay.py
set_show_window_controls_overlay(window_controls_overlay_config=None)
Show Window Controls Overlay for PWA
Parameters:
Name | Type | Description | Default |
---|---|---|---|
window_controls_overlay_config
|
Optional[WindowControlsOverlayConfig]
|
(Optional) Window Controls Overlay data, null means hide Window Controls Overlay |
None
|