Example usage for org.openqa.selenium.support Colors DIMGREY

List of usage examples for org.openqa.selenium.support Colors DIMGREY

Introduction

In this page you can find the example usage for org.openqa.selenium.support Colors DIMGREY.

Prototype

Colors DIMGREY

To view the source code for org.openqa.selenium.support Colors DIMGREY.

Click Source Link

Usage

From source file:testHelper.ColorHelper.java

public static boolean isGrey(String name) {
    List<String> greys = (new ArrayList<>());
    greys.add(Colors.GRAY.name());//from  w w  w.ja  va  2  s . c  o m
    greys.add(Colors.GREY.name());
    greys.add(Colors.DIMGRAY.name());
    greys.add(Colors.DIMGREY.name());
    return greys.contains(name);
}