Class HighlightConfig
java.lang.Object
org.openqa.selenium.devtools.v126.overlay.model.HighlightConfig
Configuration data for the highlighting of page elements.
-
Constructor Summary
ConstructorsConstructorDescriptionHighlightConfig
(Optional<Boolean> showInfo, Optional<Boolean> showStyles, Optional<Boolean> showRulers, Optional<Boolean> showAccessibilityInfo, Optional<Boolean> showExtensionLines, Optional<RGBA> contentColor, Optional<RGBA> paddingColor, Optional<RGBA> borderColor, Optional<RGBA> marginColor, Optional<RGBA> eventTargetColor, Optional<RGBA> shapeColor, Optional<RGBA> shapeMarginColor, Optional<RGBA> cssGridColor, Optional<ColorFormat> colorFormat, Optional<GridHighlightConfig> gridHighlightConfig, Optional<FlexContainerHighlightConfig> flexContainerHighlightConfig, Optional<FlexItemHighlightConfig> flexItemHighlightConfig, Optional<ContrastAlgorithm> contrastAlgorithm, Optional<ContainerQueryContainerHighlightConfig> containerQueryContainerHighlightConfig) -
Method Summary
Modifier and TypeMethodDescriptionThe border highlight fill color (default: transparent).The color format used to format color styles (default: hex).The container query container highlight configuration (default: all transparent).The content box highlight fill color (default: transparent).The contrast algorithm to use for the contrast ratio (default: aa).The grid layout color (default: transparent).The event target element highlight fill color (default: transparent).The flex container highlight configuration (default: all transparent).The flex item highlight configuration (default: all transparent).The grid layout highlight configuration (default: all transparent).The margin highlight fill color (default: transparent).The padding highlight fill color (default: transparent).The shape outside fill color (default: transparent).The shape margin fill color (default: transparent).Whether the a11y info should be shown (default: true).Whether the extension lines from node to the rulers should be shown (default: false).Whether the node info tooltip should be shown (default: false).Whether the rulers should be shown (default: false).Whether the node styles in the tooltip (default: false).
-
Constructor Details
-
HighlightConfig
public HighlightConfig(Optional<Boolean> showInfo, Optional<Boolean> showStyles, Optional<Boolean> showRulers, Optional<Boolean> showAccessibilityInfo, Optional<Boolean> showExtensionLines, Optional<RGBA> contentColor, Optional<RGBA> paddingColor, Optional<RGBA> borderColor, Optional<RGBA> marginColor, Optional<RGBA> eventTargetColor, Optional<RGBA> shapeColor, Optional<RGBA> shapeMarginColor, Optional<RGBA> cssGridColor, Optional<ColorFormat> colorFormat, Optional<GridHighlightConfig> gridHighlightConfig, Optional<FlexContainerHighlightConfig> flexContainerHighlightConfig, Optional<FlexItemHighlightConfig> flexItemHighlightConfig, Optional<ContrastAlgorithm> contrastAlgorithm, Optional<ContainerQueryContainerHighlightConfig> containerQueryContainerHighlightConfig)
-
-
Method Details
-
getShowInfo
Whether the node info tooltip should be shown (default: false). -
getShowStyles
Whether the node styles in the tooltip (default: false). -
getShowRulers
Whether the rulers should be shown (default: false). -
getShowAccessibilityInfo
Whether the a11y info should be shown (default: true). -
getShowExtensionLines
Whether the extension lines from node to the rulers should be shown (default: false). -
getContentColor
The content box highlight fill color (default: transparent). -
getPaddingColor
The padding highlight fill color (default: transparent). -
getBorderColor
The border highlight fill color (default: transparent). -
getMarginColor
The margin highlight fill color (default: transparent). -
getEventTargetColor
The event target element highlight fill color (default: transparent). -
getShapeColor
The shape outside fill color (default: transparent). -
getShapeMarginColor
The shape margin fill color (default: transparent). -
getCssGridColor
The grid layout color (default: transparent). -
getColorFormat
The color format used to format color styles (default: hex). -
getGridHighlightConfig
The grid layout highlight configuration (default: all transparent). -
getFlexContainerHighlightConfig
The flex container highlight configuration (default: all transparent). -
getFlexItemHighlightConfig
The flex item highlight configuration (default: all transparent). -
getContrastAlgorithm
The contrast algorithm to use for the contrast ratio (default: aa). -
getContainerQueryContainerHighlightConfig
The container query container highlight configuration (default: all transparent).
-