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