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

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

Introduction

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

Prototype

Colors GREY

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

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