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

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

Introduction

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

Prototype

Colors GRAY

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

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