Fix EdgeOptions to actually work
import static org.openqa.selenium.remote.CapabilityType.PAGE_LOAD_STRATEGY;
-import com.google.common.collect.ImmutableMap;
-
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.MutableCapabilities;
-import org.openqa.selenium.Platform;
import org.openqa.selenium.Proxy;
import org.openqa.selenium.remote.BrowserType;
import org.openqa.selenium.remote.CapabilityType;
-import java.util.Map;
import java.util.Objects;
*/
public class EdgeOptions extends MutableCapabilities {
- /**
- * Key used to store a set of EdgeOptions in a {@link Capabilities} object.
- */
- public static final String CAPABILITY = "edgeOptions";
-
public EdgeOptions() {
setCapability(CapabilityType.BROWSER_NAME, BrowserType.EDGE);
- setCapability(CapabilityType.PLATFORM, Platform.WINDOWS);
}
@Override
@@ -92,9 +82,4 @@ public EdgeOptions setProxy(Proxy proxy) {
MutableCapabilities toCapabilities() {
return this;
}
-
- @Override
- public Map<String, Object> asMap() {
- return ImmutableMap.of(CAPABILITY, super.asMap());
- }
}
