List of usage examples for org.openqa.selenium.support Color equals
@Override
public boolean equals(Object other)
From source file:jhc.redsniff.webdriver.matchers.ColorMatcher.java
License:Apache License
@Override protected boolean matchesSafely(WebElement item, Description mismatchDescription) { Color actualColor = Color.fromString(item.getCssValue(attributeName)); if (actualColor.equals(expectedColor)) return true; else {//from w ww .j a va2s . co m mismatchDescription.appendText(attributeName + " was " + toString(actualColor)); return false; } }