package com.clanstop.healing.driver;

/**
 * A stable logical id for an element (e.g. {@code "login.submit"}). Fingerprints and
 * locator history are keyed on this, so they survive a change to the underlying locator.
 */
public final class ByKey {

    private final String value;

    private ByKey(String value) {
        this.value = value;
    }

    public static ByKey of(String value) {
        return new ByKey(value);
    }

    public String value() {
        return value;
    }

    @Override
    public String toString() {
        return value;
    }
}
