Java 类org.openqa.selenium.support.Colors 实例源码

项目:webtester2-core    文件:BaseConfigurationTest.java   
@Test
void markingsColorUsedBackgroundCanBeChanged() {
    Color color = Colors.BLUEVIOLET.getColorValue();
    Configuration configuration = cut.setMarkingsColorUsedBackground(color);
    assertThat(cut.getMarkingsColorUsedBackground()).isEqualTo(color);
    assertThat(configuration).isSameAs(cut);
}
项目:webtester2-core    文件:BaseConfigurationTest.java   
@Test
void markingsColorUsedOutlineCanBeChanged() {
    Color color = Colors.ALICEBLUE.getColorValue();
    Configuration configuration = cut.setMarkingsColorUsedOutline(color);
    assertThat(cut.getMarkingsColorUsedOutline()).isEqualTo(color);
    assertThat(configuration).isSameAs(cut);
}
项目:webtester2-core    文件:BaseConfigurationTest.java   
@Test
void markingsColorReadBackgroundCanBeChanged() {
    Color color = Colors.ANTIQUEWHITE.getColorValue();
    Configuration configuration = cut.setMarkingsColorReadBackground(color);
    assertThat(cut.getMarkingsColorReadBackground()).isEqualTo(color);
    assertThat(configuration).isSameAs(cut);
}
项目:webtester2-core    文件:BaseConfigurationTest.java   
@Test
void markingsColorReadOutlineCanBeChanged() {
    Color color = Colors.AZURE.getColorValue();
    Configuration configuration = cut.setMarkingsColorReadOutline(color);
    assertThat(cut.getMarkingsColorReadOutline()).isEqualTo(color);
    assertThat(configuration).isSameAs(cut);
}
项目:redsniff    文件:ColorMatcher.java   
private String toString(Color color) {
    for (Colors namedColor : Colors.values()) {
        if (namedColor.getColorValue().equals(color))
            return namedColor.toString().toLowerCase();
    }
    return color.asHex().toLowerCase();
}