All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.saucelabs.saucebindings.Timeouts Maven / Gradle / Ivy

There is a newer version: 2.0.0-beta.1
Show newest version
package com.saucelabs.saucebindings;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import lombok.Getter;

public enum Timeouts {
  IMPLICIT("implicit"),
  PAGE_LOAD("pageLoad"),
  SCRIPT("script");

  @Getter private final String value;

  private static final class TimeoutsLookup {
    private static final Map lookup = new HashMap();
  }

  public static Set keys() {
    return TimeoutsLookup.lookup.keySet();
  }

  Timeouts(String value) {
    this.value = value;
    TimeoutsLookup.lookup.put(value, this.name());
  }

  public static String fromString(String value) {
    return TimeoutsLookup.lookup.get(value);
  }

  public String toString() {
    return this.value;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy