|
29 | 29 | import static org.openqa.selenium.ie.InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS;
|
30 | 30 | import static org.openqa.selenium.ie.InternetExplorerDriver.NATIVE_EVENTS;
|
31 | 31 | import static org.openqa.selenium.ie.InternetExplorerDriver.REQUIRE_WINDOW_FOCUS;
|
| 32 | +import static org.openqa.selenium.remote.CapabilityType.BROWSER_NAME; |
32 | 33 | import static org.openqa.selenium.remote.CapabilityType.PAGE_LOAD_STRATEGY;
|
| 34 | +import static org.openqa.selenium.remote.CapabilityType.PLATFORM; |
33 | 35 | import static org.openqa.selenium.remote.CapabilityType.UNHANDLED_PROMPT_BEHAVIOUR;
|
34 | 36 |
|
35 | 37 | import com.google.common.base.Preconditions;
|
|
41 | 43 | import org.openqa.selenium.Capabilities;
|
42 | 44 | import org.openqa.selenium.MutableCapabilities;
|
43 | 45 | import org.openqa.selenium.PageLoadStrategy;
|
| 46 | +import org.openqa.selenium.Platform; |
44 | 47 | import org.openqa.selenium.UnexpectedAlertBehaviour;
|
45 | 48 | import org.openqa.selenium.internal.ElementScrollBehavior;
|
| 49 | +import org.openqa.selenium.remote.BrowserType; |
| 50 | +import org.openqa.selenium.remote.CapabilityType; |
46 | 51 | import org.openqa.selenium.remote.DesiredCapabilities;
|
47 | 52 |
|
48 | 53 | import java.time.Duration;
|
@@ -99,6 +104,9 @@ public InternetExplorerOptions(Capabilities source) {
|
99 | 104 | super();
|
100 | 105 |
|
101 | 106 | setCapability(IE_OPTIONS, ieOptions);
|
| 107 | + setCapability(BROWSER_NAME, BrowserType.IE); |
| 108 | + setCapability(PLATFORM, Platform.WINDOWS); |
| 109 | + setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true); |
102 | 110 |
|
103 | 111 | merge(source);
|
104 | 112 | }
|
|
0 commit comments