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

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

Introduction

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

Prototype

Colors DIMGRAY

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

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());//  ww w .  j  a v  a 2 s. c om
    greys.add(Colors.GREY.name());
    greys.add(Colors.DIMGRAY.name());
    greys.add(Colors.DIMGREY.name());
    return greys.contains(name);
}