AssertStyleColorAndBackground Method (HtmlStyleColorAndBackground, String, HtmlStyleType)

Progress Software Corporation - Testing Framework 2018.1 Automation Infrastructure
Assert Color/Background styles.

Namespace:  ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts
Assembly:  ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax

public bool ColorAndBackground(
	HtmlStyleColorAndBackground styleName,
	string expectedValue,
	HtmlStyleType styleType
)

Parameters

styleName
Type: ArtOfTest.WebAii.Controls.HtmlControls.HtmlAssertsHtmlStyleColorAndBackground
The color or background style.
expectedValue
Type: SystemString
The expected style value.
styleType
Type: ArtOfTest.WebAii.Controls.HtmlControls.HtmlAssertsHtmlStyleType
Either computed or inline.

Return Value

Type: Boolean
True if the values match else will throw an AssertException.
Remarks

Automatically detects colors and will perform the proper validation regardless of the format of the color encoding attached to the style e.g. "red" will match "#FF0000".
See Also

Reference