Example usage for org.openqa.selenium.support Color equals

List of usage examples for org.openqa.selenium.support Color equals

Introduction

In this page you can find the example usage for org.openqa.selenium.support Color equals.

Prototype

@Override
    public boolean equals(Object other) 

Source Link

Usage

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;
    }
}