package com.bookstore;
import org.openqa.selenium.By;
import java.util.function.Supplier;
import static org.openqa.selenium.By.id;
public enum BookStoreId implements Supplier<By> {
SHIPPING_FIRST_NAME("shipping-first-name"),
SHIPPING_LAST_NAME("shipping-last-name"),
SHIPPING_ADDRESS1("shipping-address1"),
SHIPPING_ADDRESS2("shipping-address2"),
SHIPPING_CITY("shipping-city"),
SHIPPING_STATE("shipping-state"),
SHIPPING_COUNTRY("shipping-country"),
SHIPPING_ZIP("shipping-zip"),
SHIPPING_EMAIL("shipping-email"),
BILLING_FIRST_NAME("billing-first-name"),
BILLING_LAST_NAME("billing-last-name"),
BILLING_ADDRESS1("billing-address1"),
BILLING_ADDRESS2("billing-address2"),
BILLING_CITY("billing-city"),
BILLING_STATE("billing-state"),
BILLING_COUNTRY("billing-country"),
BILLING_ZIP("billing-zip"),
BILLING_EMAIL("billing-email"),
CARD_TYPE("card-type"),
CARD_NUMBER("card-number"),
CARD_CVV("card-cvv"),
CARD_EXP_MONTH("card-exp-month"),
CARD_EXP_YEAR("card-exp-year"),
COUPON_CODE("gc-redemption-code"),
SEARCH_INPUT("navbar-search"),
RATINGS("ratings"),
CONFIRM_EMAIL("confirm-email"),
COMMENTS("comments"),
ERROR_MESSAGES("ys_errorMessages"),
SHOPPING_CART("ys_cart"),
YAHOO_COPYRIGHT("ys_copyright"),
CONTENT("content"),
FOOTER("footer");
private final By by;
BookStoreId(String id) {
this.by = id(id);
}
@Override
public By get() {
return by;
}
@Override
public String toString() {
return by.toString();
}
}