assertColor (UI Automation - Interrogation)
Compatible with:
- Purpose
- Retrieves the css color attribute value applied to that element and compares with the pattern in Value.
- Fails if the specified element doesn't exist or doesn't match the pattern.
- Syntax
- assertColor(locator, pattern)
- Target
- locator - an element locator pointing to an element OR an element itself
- Value
- Pattern - the color in rgb (r, g, b) format.
- Return Value
- The color in rgb(r, g, b) format.