com.saucelabs.saucebindings.Browser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sauce_bindings Show documentation
Show all versions of sauce_bindings Show documentation
Java library which provides tools for interacting with Sauce Labs
The newest version!
package com.saucelabs.saucebindings;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import lombok.Getter;
public enum Browser {
CHROME("chrome"),
INTERNET_EXPLORER("internet explorer"),
EDGE("MicrosoftEdge"),
SAFARI("safari"),
FIREFOX("firefox");
@Getter private final String value;
private static final class BrowserLookup {
private static final Map lookup = new HashMap();
}
public static Set keys() {
return BrowserLookup.lookup.keySet();
}
Browser(String value) {
this.value = value;
BrowserLookup.lookup.put(value, this.name());
}
public static String fromString(String value) {
return BrowserLookup.lookup.get(value);
}
public String toString() {
return this.value;
}
}