Skip to content

Commit 8be57e1

Browse files
committed
Fix EdgeOptions to actually work
1 parent b576ae5 commit 8be57e1

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

java/client/src/org/openqa/selenium/edge/EdgeOptions.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,12 @@
1919

2020
import static org.openqa.selenium.remote.CapabilityType.PAGE_LOAD_STRATEGY;
2121

22-
import com.google.common.collect.ImmutableMap;
23-
2422
import org.openqa.selenium.Capabilities;
2523
import org.openqa.selenium.MutableCapabilities;
26-
import org.openqa.selenium.Platform;
2724
import org.openqa.selenium.Proxy;
2825
import org.openqa.selenium.remote.BrowserType;
2926
import org.openqa.selenium.remote.CapabilityType;
3027

31-
import java.util.Map;
3228
import java.util.Objects;
3329

3430

@@ -50,14 +46,8 @@
5046
*/
5147
public class EdgeOptions extends MutableCapabilities {
5248

53-
/**
54-
* Key used to store a set of EdgeOptions in a {@link Capabilities} object.
55-
*/
56-
public static final String CAPABILITY = "edgeOptions";
57-
5849
public EdgeOptions() {
5950
setCapability(CapabilityType.BROWSER_NAME, BrowserType.EDGE);
60-
setCapability(CapabilityType.PLATFORM, Platform.WINDOWS);
6151
}
6252

6353
@Override
@@ -92,9 +82,4 @@ public EdgeOptions setProxy(Proxy proxy) {
9282
MutableCapabilities toCapabilities() {
9383
return this;
9484
}
95-
96-
@Override
97-
public Map<String, Object> asMap() {
98-
return ImmutableMap.of(CAPABILITY, super.asMap());
99-
}
10085
}

0 commit comments

Comments
 (0)