Allow ChromeOptions to amend the hash
import java.util.Collections;
import java.util.List;
import java.util.Map;
+import java.util.Objects;
import java.util.TreeMap;
/**
@@ -236,6 +237,16 @@ MutableCapabilities toCapabilities() {
return this;
}
+ @Override
+ protected int amendHashCode() {
+ return Objects.hash(
+ args,
+ binary,
+ experimentalOptions,
+ extensionFiles,
+ extensions);
+ }
+
@Override
public Map<String, ?> asMap() {
Map<String, Object> toReturn = new TreeMap<>();
