package com.algocrafts.selectors;
import org.openqa.selenium.By;
import java.util.function.Supplier;
import static org.openqa.selenium.By.className;
/**
* This enum is a Supplier of ByClassName from Selenium By API.
*/
public enum ClassName implements Supplier<By> {
L_TINYNAL1("l_tinynav1"),
SF_JS_ENABLED("sf-js-enabled"),
TOOLS_LOCATION("tools-location"),
UI_DATEPICKER_CALENDAR("ui-datepicker-calendar"),
UI_DATEPICKER_NEXT("ui-datepicker-next"),
UI_DATEPICKER_PREV("ui-datepicker-prev"),
UI_DATEPICKER_MONTH("ui-datepicker-month"),
UI_DATEPICKER_YEAR("ui-datepicker-year"),
UI_DATEPICKER_HEADER("ui-datepicker-header"),
PAGE_TITLE("page-title"),
UI_DATEPICKER_CLOSE("ui-datepicker-close"),
SBDD_B("sbdd_b"),
MAIN("main");
private final By by;
ClassName(String id) {
this.by = className(id);
}
/**
* @return the by instance variable which is a ByClassName.
*/
@Override
public By get() {
return by;
}
@Override
public String toString() {
return by.toString();
}
}